Hi RLM, Did you import samples in root urls.py Like as below
>From samples import urls Hope it will solve ur error. Thanks. On Mon, 13 May, 2019, 7:45 PM John Bagiliko, <[email protected]> wrote: > Try this in samples/urls.py > > from django.urls import path > from . import views > > urlpatterns = [ > path(''",views.index, name='index'), > ] > > By the way, what is the error you are getting? > On Mon, May 13, 2019, 7:14 AM RLM <[email protected]> wrote: > >> Hi Everyone. >> I have been away from Django for the past 18 months and am refreshing to >> use it for a complex samples storage project. >> >> Python 3.7, Django 2.2 the LTS fails with too many errors. >> >> Unfortunately I have had this particular error every time I try Django >> over the past 18 months which is why I had to resort to HuGo for a >> particular web site build. >> >> I feel there is something I have forgotten to do and will appreciate >> help understanding why it occurs. >> >> I have researched but no advice helps. >> I have seen pages on PYTHONPATH and the like but problem is not solved >> and it seems to have been an issue for at least a year. >> >> The project is called Storage, it's app is called samples. >> >> The problem I have is the ModuleNotFoundError: No module named 'samples'. >> >> Where samples is the only app. >> >> INSTALLED_APPS = [ >> 'django.contrib.admin', >> 'django.contrib.auth', >> 'django.contrib.contenttypes', >> 'django.contrib.sessions', >> 'django.contrib.messages', >> 'django.contrib.staticfiles', >> 'samples', >> >> root urls/py is: >> urlpatterns = [ >> path('admin/', admin.site.urls), >> path('samples/', include('samples.urls')), >> ] >> >> samples/urls.py is: >> from django.urls import path >> from . import views >> >> urlpatterns = [ >> path('',views.index, name='index'), >> ] >> >> There are no models. >> >> samples/views.py is: >> from django.shortcuts import render >> from django.http import HttpResponse >> >> def index(request): >> return HttpResponse("Hello from the RMH App") >> >> Thanks for any help >> Cheers >> Roger >> >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> 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/dee6f7a2-23e9-eaa7-052e-fb714dd7f3b4%40gmail.com >> . >> 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAC26BE02jK937V6XhQXv4MtEGyeo%2BV%2BWpDgB4S%3D%2BHWmv9RxFFA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAC26BE02jK937V6XhQXv4MtEGyeo%2BV%2BWpDgB4S%3D%2BHWmv9RxFFA%40mail.gmail.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 [email protected]. To post to this group, send email to [email protected]. 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/CAGHZBzxdnEyosELPnY9wn%2BFQiUFpLwtMQFWybkRXVkm8fo94Qg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

