First... I... created.... Project at my machine... then... uploaded to github.... then.... from git i import it to my namecheap shared hosting server, i created python app in that folder, then i run migrations cmds... but apps are not detected by django
On Thu, 7 May, 2020, 6:09 pm Mohsen Pahlevanzadeh, < m.pahlevanza...@gmail.com> wrote: > Where did you import your module? > > On Thu, May 7, 2020 at 3:09 PM Mukesh Badgujar < > mukesh.badgujar...@gmail.com> wrote: > >> already added >> >> 'home.apps.HomeConfig', >> 'blog.apps.BlogConfig', >> 'shop.apps.shopConfig', >> >> one thing is that, i copied this app folder frm my other project, this is >> not created here >> >> >> On Sunday, 9 August 2015 22:43:38 UTC+5:30, Robin Lery wrote: >>> >>> Did you add your 'blog' app in the installed apps in settings.py? >>> >>> On Sun, Aug 9, 2015 at 10:35 PM, Maggie Chang <unique...@gmail.com> >>> wrote: >>> >>>> hi all, >>>> would like to seek for everyone's help. >>>> I am following the django girls instruction => >>>> http://tutorial.djangogirls.org/en/django_urls/index.html#your-first-django-url, >>>> but encounter the problem. >>>> when I connect to 127.0.0.1:8000, I got the No module named 'blog' >>>> response. >>>> Here's the message on browser. >>>> ************** >>>> ImportError at / >>>> >>>> No module named 'blog' >>>> >>>> Request Method: GET >>>> Request URL: http://127.0.0.1:8000/ >>>> Django Version: 1.8 >>>> Exception Type: ImportError >>>> Exception Value: >>>> >>>> No module named 'blog' >>>> >>>> Exception Location: /usr/lib/python3.4/importlib/__init__.py in >>>> import_module, line 109 >>>> Python Executable: /home/maggie/djangoanywhere/venv/bin/python >>>> Python Version: 3.4.0 >>>> Python Path: >>>> >>>> ['/home/maggie/djangoanywhere', >>>> '/usr/lib/python3.4', >>>> '/usr/lib/python3.4/plat-x86_64-linux-gnu', >>>> '/usr/lib/python3.4/lib-dynload', >>>> '/home/maggie/djangoanywhere/venv/lib/python3.4/site-packages'] >>>> >>>> Server time: Mon, 10 Aug 2015 00:47:53 +0800 >>>> ************** >>>> >>>> This issue occurred when I add *url(r'', include('blog.urls')), *into >>>> *magsite/url.py* >>>> ************** >>>> *url.py* >>>> ************** >>>> from django.conf.urls import include, url >>>> from django.contrib import admin >>>> >>>> >>>> urlpatterns = [ >>>> url(r'^admin/', include(admin.site.urls)), >>>> url(r'', include('blog.urls')), >>>> ] >>>> ************** >>>> Any idea about the root cause? :( >>>> and any response will be appreciate. >>>> >>>> -- >>>> 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...@googlegroups.com. >>>> To post to this group, send email to django...@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/0c3ba90d-97d3-448c-8656-0b2ad6becca7%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/0c3ba90d-97d3-448c-8656-0b2ad6becca7%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4a25e83a-0f62-4f60-8401-618252682a22%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/4a25e83a-0f62-4f60-8401-618252682a22%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJFFGZLyEOZBqbdVULzD8xR6abjfvy8VoMaO4War133B3FeDXQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAJFFGZLyEOZBqbdVULzD8xR6abjfvy8VoMaO4War133B3FeDXQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSZPCPdqGUdgZbQ3RVvz7XRBsf2JL9qu2xFSy6ehyVm3Q0BCw%40mail.gmail.com.