Re: 'python manage.py startproject survey' does not add 'survey' to INSTALLED _APPS.
Martin Melin wrote: > On Thu, Jul 29, 2010 at 10:51 PM, to_see <w...@cox.net> wrote: > > I am still new to Django, and am typing my way through some tutorials > > (not running demo code). I could not figure out why I was getting > > incorrect results in an Admin demo, until I looked at the sample > > code. > > > > When I did this: > > > > django-admin.py startproject marketr > > cd marketr > > python manage.py startapp survey > > > > I got a full set of default filed, but settings.py did not include > > 'survey' at the end of the INSTALLED_APPS list, as the demos > > indicate. I have made several attempts, and not once have I gotten my > > app in the list. It's seems easy enough, so I would like to find out > > what I'm doing wrong. > > > > I'm running Django 1.2.1 with Python 2.6.5 on Ubuntu 10.04. > > Considering that so many files are generated, correctly as far as I > > can tell, I do not see why this one piece is missing. Especially > > since I read the FAQ and searched this forum, and looked at the list > > of tickets and don't see anything that matches. > > I think it would be bad form for startapp to edit your settings file. > As far as the tutorial goes, adding your newly created app to > INSTALLED_APPS is covered right here: > http://docs.djangoproject.com/en/dev/intro/tutorial01/#activating-models > > Cheers, > Martin Thanks, Martin. Huh. I missed that one, I was working from a book I bought, which did not explain that I needed to do that, as far as I can tell (but maybe I am a bit careless?). I will try to be more careful! John. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
'python manage.py startproject survey' does not add 'survey' to INSTALLED _APPS.
I am still new to Django, and am typing my way through some tutorials (not running demo code). I could not figure out why I was getting incorrect results in an Admin demo, until I looked at the sample code. When I did this: django-admin.py startproject marketr cd marketr python manage.py startapp survey I got a full set of default filed, but settings.py did not include 'survey' at the end of the INSTALLED_APPS list, as the demos indicate. I have made several attempts, and not once have I gotten my app in the list. It's seems easy enough, so I would like to find out what I'm doing wrong. I'm running Django 1.2.1 with Python 2.6.5 on Ubuntu 10.04. Considering that so many files are generated, correctly as far as I can tell, I do not see why this one piece is missing. Especially since I read the FAQ and searched this forum, and looked at the list of tickets and don't see anything that matches. Help? John. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django - technology or magic?
Thank you all for the constructive, informative and supportive posts. I think more time and study will put me right. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Django - technology or magic?
"Any sufficiently advanced technology is indistinguishable from magic." Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third law) After getting the tutorial example to work, then making a first-draft version of my proposed application, I hit a wall trying to do something that seemed both essential and straightforward. After 3 days of trying various strategies, I decided that what I needed might not be possible. I spent about a day browsing all the relevant source code, plus anything they used. I made one last pass through the posts here that seemed related, and then hit the Snippets site. Snippet #26 solved my problem, essentially in two lines. I could not write those lines for myself now, and I'm not certain I'll ever be able to do so. Am I having a fairly normal introduction to a web framework? I cannot see this as technology. All I see is magic. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: newforms for idiots and designers?
Austin Govella wrote: > I'm *almost* getting forms to work, but not quite. > > Can anyone recommend a newforms tutorial written for designers? > Something akin to Zoolander's School for Kids Can't Program Good. > I know the feeling. Here's a link to lots of tutorials - some of the others will come in handy sooner or later - about halfway down the page under the heading FORMS, the last three tutorials on newforms are all very helpful. http://code.djangoproject.com/wiki/Tutorials Good luck.! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---