Saturday, October 29, 2016

Re: Newbie question - data structure for game

Sounds good. Thanks for the advice. Now if I could only figure out how to get forms to expand and contract to match the size of the quote...

Thanks.

On Friday, October 28, 2016 at 5:00:14 PM UTC-7, Ken Albright wrote:
I'm just learning Python and Django so please be gentle...

I've written a quote decryption game (like you see in the newspaper) in Python. I'd like to put it on a web page with Django. However, I'm not sure of the best way to structure the data. The original quote and the encrypted quote need to have a one-to-one relationship at the letter level. So it could be two strings on the same row (same id) or a set of tuples, a dictionary, or ???

How to set up the database and models.py?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d97d972b-ec64-483a-8aaf-e69482a4050e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment