On Fri, Aug 19, 2016 at 02:05:18PM -0700, Rich Shepard wrote: > On Fri, 19 Aug 2016, Tim Graham wrote: > > >Don't use the same name for your app and project. When you "startproject > >crm", the project settings.py, urls.py, and wsgi.py are placed in a module > >named "crm" so you can't use the same name for an app. > > Tim, > > I read that but overlooked the implications.
Hi Rich, Just to add to what Tim wrote, there's no reason why you couldn't use the crm package created by startproject as an “app”, too – all you have to do is create a models.py file in there (next to the existing urls.py, if you need any models), views.py (if you need views), and add 'crm' to ``INSTALLED_APPS``. That's pretty much the same thing as what startapp would have done, anyway. Good luck, Michal -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20160822082445.GL27882%40koniiiik.org. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature