what's strange to me is that I can comment out each of the urls and I get basically the same error message. When all three are gone, it complains there are no urls. But I'm stuck on thinking I have a type.
background: this was a 1.3 project that I converted to 1.6 today using virtualenv to keep things clean. I'm feeling like I haven't given enough environment info. It worked at 4pm without adding admindocs. Not sure what I did. On Tue, Aug 5, 2014 at 8:05 PM, Lachlan Musicman <data...@gmail.com> wrote: > Bugger - I find that error when left out of the settings or the wsgi > points to the wrong settings file. Usually when I'm swapping between > envs "settings.dev" "settings.prod" > > L. > > On 6 August 2014 09:44, Joel Goldstick <joel.goldst...@gmail.com> wrote: >> On Tue, Aug 5, 2014 at 7:15 PM, Lachlan Musicman <data...@gmail.com> wrote: >>> Make sure the blog_app is in your settings.py? >> >> It is: >> INSTALLED_APPS = ( >> 'django.contrib.admin', >> 'django.contrib.admindocs', >> 'django.contrib.auth', >> 'django.contrib.contenttypes', >> 'django.contrib.sessions', >> 'django.contrib.messages', >> 'django.contrib.staticfiles', >> 'blog_app', >> ) >> >> I'm thinking its a typo. It actually worked before some unknown small >> change... >> >> >>> >>> On 6 August 2014 09:00, Joel Goldstick <joel.goldst...@gmail.com> wrote: >>>> I have this: >>>> >>>> from django.conf.urls import patterns, include, url >>>> >>>> from django.contrib import admin, admindocs >>>> import blog_app >>>> >>>> admin.autodiscover() >>>> >>>> patterns = patterns('', >>>> url(r'^admin/doc/', include(admindocs.urls)), >>>> url(r'^blog/', include(blog_app.urls)), >>>> url(r'^admin/', include(admin.site.urls)), >>>> ) >>>> >>>> i am using virtualenv, django 1.6 >>>> >>>> I get this error: >>>> >>>> Exception Value: >>>> >>>> 'module' object has no attribute 'urls' >>>> >>>> Exception Location: >>>> /home/jcg/code/python/venvs/joelgoldstick.com.16/blog/blog/urls.py in >>>> <module>, line 9 >>>> >>>> It worked earlier today. I think I have a typo but can't find it. >>>> >>>> -- >>>> Joel Goldstick >>>> http://joelgoldstick.com >>>> >>>> -- >>>> 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+unsubscr...@googlegroups.com. >>>> To post to this group, send email to django-users@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/django-users. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/CAPM-O%2ByT4kZJZmVzsLFrvsYo7qtjgzGeuNOKwx8GQERxLcV2_Q%40mail.gmail.com. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> >>> -- >>> You have to be really clever to come up with a genuinely dangerous >>> thought. I am disheartened that people can be clever enough to do that >>> and not clever enough to do the obvious thing and KEEP THEIR IDIOT >>> MOUTHS SHUT about it, because it is much more important to sound >>> intelligent when talking to your friends. >>> This post was STUPID. >>> ----------------------------------------------------------------------------------------------------------- >>> The Most Terrifying Thought Experiment of All Time >>> http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> To post to this group, send email to django-users@googlegroups.com. >>> Visit this group at http://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAGBeqiM7LjoorbTPvoGr2TW8rnVPcw766sW61gTWokb3X6xAmQ%40mail.gmail.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Joel Goldstick >> http://joelgoldstick.com >> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAPM-O%2Bx6eDNR5Uhm-R%3Dc6aS%3D8%2BtxqXuzeMCJTDxOPm9x8qk5Yg%40mail.gmail.com. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > You have to be really clever to come up with a genuinely dangerous > thought. I am disheartened that people can be clever enough to do that > and not clever enough to do the obvious thing and KEEP THEIR IDIOT > MOUTHS SHUT about it, because it is much more important to sound > intelligent when talking to your friends. > This post was STUPID. > ----------------------------------------------------------------------------------------------------------- > The Most Terrifying Thought Experiment of All Time > http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAGBeqiPTqyjSm%3DLrGj46d4O%2BfUb0GmhLXwUFo9aWqVSt%3DcjT7Q%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- Joel Goldstick http://joelgoldstick.com -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPM-O%2ByACJGJNQ%2BLZniFbMh6s78d3EtPqSGd4V%2B0G4R8FPdfnw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.