Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Sammy Agrawal
Thank you all so much! Franck's suggestion did it and now I'm further along
on my Django journey!

On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey  wrote:

> Besides that, I do recommend Morzilla's Django Tutorial too, as it covers
> more in the tutorial compared to Django's own tutorial.
>
> Link:
>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website
>
>
> Regards,
> Kai Wey
>
> On Thu, Aug 1, 2019 at 6:35 PM Lim Kai Wey  wrote:
>
>> I do agree that you Sammy could try changing the mysite/mysite/setting.py
>>
>>   INSTALLED_APPS=[
>> 'polls.apps.PollsConfig',
>>  
>>The rest of the code
>>   """
>>]
>>
>> And I too was wondering if he placed 'polls/' as his URL in
>> mysite/polls/urls.py that cause the error. (IF that is the case)
>> But in my opinion, for future development purposes and good practice to
>> know which django app you are at while browsing at webpage.
>> Remain the mysite/mysite/urls.py as it is. The code should be:
>>
>> from django.contrib import admin
>> from django.urls import include, path
>>
>> urlpatterns = [
>> path('polls/', include('polls.urls')),
>> path('admin/', admin.site.urls),
>> ]
>>
>> and instead change the mysite/polls/urls.py The code should be:
>>
>> from django.urls import path
>> from . import views
>>
>> urlpatterns = [
>> path('', views.IndexView.as_view(), name='index'),
>> ]
>>
>> Please do correct me if I am wrong. Hope it helps.
>>
>> Regards,
>> Kai Wey
>>
>> On Thu, Aug 1, 2019 at 6:17 PM Franck Tchouanga 
>> wrote:
>>
>>> I wanted to precise at the level of the syntax from what I wrote above
>>>
>>>  Urlpatterns = [
>>>
>>>   Path(' ',include('polls.URLs')),
>>>   Path('admin/', admin.site.urls),
>>>]
>>>
>>> --
>>> 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/a79f2408-a229-4048-a859-bda8e0675e9e%40googlegroups.com
>>> .
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/dV46T9ZqPhA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPcVkjiSOhVSGpUYBSfAAo%2BLXdRrR6_k3-ydjXu76ZatsbNmZQ%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHUCoeigYRgPLSyjdCdBC3uCWsasZZQwGzGT0pxxKatOFShpaw%40mail.gmail.com.


Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Sammy Agrawal
I’m on Mac, and am still having this problem.
On Wed, Jul 31, 2019 at 10:46 AM Charlotte Wood <
charlotte.w...@epiccharterschools.org> wrote:

> Windows?
>
> On Wed, Jul 31, 2019, 6:20 AM Sammy Agrawal  wrote:
>
>> Still having this problem- no solution found
>>
>> On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com
>> wrote:
>>>
>>> Hi,
>>>
>>> I am running into the same problem as this:
>>>
>>> http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
>>>
>>> Now I can just follow the Alasdair's recommendation and delete the
>>> polls/url.py file, but the tutorial is very clear about having two separate
>>> urls.py. <http://stackoverflow.com/users/113962/alasdair>
>>> Is this a mistake in the tutorial?
>>>
>>> I even copied and pasted the tutorials code and tried to run it and it
>>> still gave the same error:
>>> *ImportError: No module named 'polls.urls'*
>>>
>>> Very confusing for a first step tutorial, maybe this could be corrected
>>> if it is an issue?
>>>
>>> Kind Regards
>>>
>>
>>> <http://stackoverflow.com/users/113962/alasdair>
>>>
>> --
>> 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/abb48a60-7ff7-445a-8468-616fc6f30ea2%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/abb48a60-7ff7-445a-8468-616fc6f30ea2%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/dV46T9ZqPhA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPZR0N5XnyD%2BeG8ND-Uq%3DnkNEAM4hcjHsX%2BmxO2YLD-b0RCZxQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPZR0N5XnyD%2BeG8ND-Uq%3DnkNEAM4hcjHsX%2BmxO2YLD-b0RCZxQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
-- 
- Sammy

-- 
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/CAHUCoei16dXLtznLf-WakojNuK8wSdfNZ%3DhBn%3DvFXEJ1OHX4sw%40mail.gmail.com.


Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Sammy Agrawal
Still having this problem- no solution found

On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com 
wrote:
>
> Hi, 
>
> I am running into the same problem as this:
>
> http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
>
> Now I can just follow the Alasdair's recommendation and delete the 
> polls/url.py file, but the tutorial is very clear about having two separate 
> urls.py. 
> Is this a mistake in the tutorial?
>
> I even copied and pasted the tutorials code and tried to run it and it 
> still gave the same error:
> *ImportError: No module named 'polls.urls'*
>
> Very confusing for a first step tutorial, maybe this could be corrected if 
> it is an issue?
>
> Kind Regards
> 
>

-- 
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/abb48a60-7ff7-445a-8468-616fc6f30ea2%40googlegroups.com.