Re: Error running Django tutorial

2020-07-20 Thread Lithium
In in mysite/urls.py check the "/" after "polls" in this line: path('polls/', include('polls.urls')) On Friday, June 12, 2020 at 4:52:52 PM UTC+4:30 temitope iyanoye wrote: > I’m using Django 3.0 and I have this same issue following the official > Django tutorial, has anyone been able to fix

Re: Error running Django tutorial

2020-06-12 Thread temitope iyanoye
I’m using Django 3.0 and I have this same issue following the official Django tutorial, has anyone been able to fix it? Please I need help, thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Error running Django tutorial

2020-03-25 Thread Thomas Pittman
Kyle D, This is why I stay in this thread. Thanks for the heads up. I remember being so lost when I tried to start teaching myself Django. What's the class for? Regards On Tue, Mar 24, 2020 at 10:46 PM kyle D wrote: > I'm using Django for a class, and came across this thread and thought I'd

Re: Error running Django tutorial

2020-03-24 Thread kyle D
I'm using Django for a class, and came across this thread and thought I'd post what fixed it for me in case someone else has the same issue I did. Makes sure your mysite/urls.py is the one that has the urlpatterns[] with the path to your polls and not the mysite/polls/urls.py. This one:

Re: Error running Django tutorial

2019-07-24 Thread Will Brown
Thank you. I think this is the issue for many of us... mysite/ On Friday, January 4, 2019 at 4:38:47 AM UTC-8, Nitin Tiwari wrote: > > I just wanna, explain my experience, in the official tutorial > https://docs.djangoproject.com/en/2.1/intro/tutorial01/ >

Re: Error running Django tutorial

2019-01-04 Thread Nitin Tiwari
I just wanna, explain my experience, in the official tutorial https://docs.djangoproject.com/en/2.1/intro/tutorial01/ when they tell you to edit urls file of mysite directorythey didnt mention which one. And in the beginning of

Re: Error running Django tutorial

2018-09-21 Thread Asong nkemzi
I figured it out thanks Guys! like every one else I just added my app string to the application VARIABLE in *mysite/settings.py * works fabulously On Fri, Sep 21, 2018 at 7:43 AM John Meyer wrote: > I have been testing this tutorial frequently over the last few days (with > success) and am

Re: Error running Django tutorial

2018-09-21 Thread John Meyer
I have been testing this tutorial frequently over the last few days (with success) and am using an empty string ( ‘’ ) for the route (first argument to path) in the app’s urls.py, rather than the ‘raw’ string value I see in the earlier posts here. -- You received this message because you are

Re: Error running Django tutorial

2018-09-20 Thread Joel
Show the urls.py after adding everything. Note that there must be two urls.py. One in the project folder, another in the app folder On Fri 21 Sep, 2018, 12:18 AM Asong nkemzi, wrote: > Hello, Ruth did you ever solve this problem? I am experiencing exactly the > same issue > > On Thursday, March

Re: Error running Django tutorial

2018-09-20 Thread Asong nkemzi
Hello, Ruth did you ever solve this problem? I am experiencing exactly the same issue On Thursday, March 17, 2016 at 4:07:11 PM UTC-4, Ruth wrote: > > I am getting the very same problem, despite adding include to my > mysite\urls.py file. > I am using Python 2.7.6, Django 1.9.4 and Ubuntu

Re: Error running Django tutorial

2018-06-16 Thread Mayank Bhatia
hello guys, I am facing the same error while creating the views. On Sunday, February 28, 2016 at 1:20:39 AM UTC+5:30, Mike Kipling wrote: > > I am working through the Django tutorial *Writing your first Django app, > part 1.* > I am using Windows 10, python 3.5.1 and Django 1.9.2 . > > In the

Re: Error running Django tutorial

2018-05-04 Thread Elorm Koku
You don't have anything like music/index in your urls.py file yet you are putting it in your request. On Fri, 4 May 2018, 21:48 Kamal Kumar Bharadwaj, < bharadwaj.kamal3...@gmail.com> wrote: > Hi Guys, > > I am facing trouble while running the tutorial for Django. I have attached > the error

Re: Error running Django tutorial

2017-03-16 Thread Thomas Pittman
I'm not sure why, but it stopped the error and send to import it. I'm using 3.6? On Mar 16, 2017 11:45 AM, "Vijay Khemlani" wrote: > Why is there a backslash in > > from django.conf.urls import polls\ > > ? > > On 3/16/17, Camilo Torres wrote: > >

Re: Error running Django tutorial

2017-03-16 Thread Vijay Khemlani
Why is there a backslash in from django.conf.urls import polls\ ? On 3/16/17, Camilo Torres wrote: > Hi. > > You may have a strange, non-visible character in your file just before the > line giving error. > > -- > You received this message because you are subscribed to

Re: Error running Django tutorial

2017-03-16 Thread Camilo Torres
Hi. You may have a strange, non-visible character in your file just before the line giving error. -- 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

Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman
from django.conf.urls import url from django.conf.urls import include from django.conf.urls import polls\ from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', include('admin.site.urls')), ] Here is a copy of the the mysite.py file. I'm

Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman
Here is the error I keep getting. I've started this tutorial on python 3.6. I ran into the problems people had before. Somehow I've fixed them before I got here. I can't seem to reconcile this part. Any suggestions? On Saturday, February 27, 2016 at 2:50:39 PM UTC-5, Mike Kipling wrote: >

Re: Error running Django tutorial

2017-03-08 Thread Daniel Bess
Hello! Daniel > On Mar 8, 2017, at 12:51 AM, Melvyn Sopacua wrote: > > Hi, > > On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote: > > > > urlpatterns = [ > > url(r'ˆpolls/', include('polls.urls')), > > url(r'^admin/', admin.site.urls), > > ] > > Easy

Re: Error running Django tutorial

2017-03-08 Thread Melvyn Sopacua
Hi, On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote: > urlpatterns = [ > url(r'ˆpolls/', include('polls.urls')), > url(r'^admin/', admin.site.urls), > ] Easy to see this way. You didn't type a caret but some unicode sign that looks like a caret. -- Melvyn Sopacua -- You

Re: Error running Django tutorial

2017-03-07 Thread Vanja Falck
Hi, I am also facing the same problems with the djangoproject tutorial - I have changed the settings.py file to add the polls app, but it did not solve the issue: When runserver: I get the admin page, but not the polls page. Get a similar 404 error page as Kipling, but with the ˆpolls/ url in

Re: Error running Django tutorial

2016-06-19 Thread David Bon
I was having the exact same problem. In fact I was not modiying the right urls.py On windows dirs i've got: mysite/ urls.py In fact there the in your -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Error running Django tutorial

2016-03-19 Thread Ruth
Hi, I am getting the same problem, despite having include in my mysite\urls.py file. I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS. Could it by a Python 2.7 problem? Thanks, Ruth On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com wrote: > > Glad you got it

Re: Error running Django tutorial

2016-03-19 Thread Bruno Barbosa
Ruth, Show me the code! How is your urls.py? and the views.py? paste your code in https://gist.github.com/ and reply this email. -- Bruno Barbosa Web Developer *brunobarbosa.com.br * On Thu, Mar 17, 2016 at 3:50 PM, Ruth wrote: >

Re: Error running Django tutorial

2016-03-19 Thread Ruth
I am getting the very same problem, despite adding include to my mysite\urls.py file. I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS Could it be a python 2.7 problem? Thanks, Ruth On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, Mike Kipling wrote: > > I am working through the

Re: Error running Django tutorial

2016-03-02 Thread jorrit787
Glad you got it solved!! On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote: > > I found the problem. > > When the mysite\urls.py file is created, it has this line already in it. > > from django.conf.urls import url > > The tutorial asks you to add the following lines to the

Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
I found the problem. When the mysite\urls.py file is created, it has this line already in it. from django.conf.urls import url The tutorial asks you to add the following lines to the file. from django.conf.urls import include, url from django.contrib import admin urlpatterns = [

Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Can you attach your entire project's code in a ZIP file? I'm curious to test this myself... On Monday, February 29, 2016 at 9:23:20 PM UTC+1, Mike Kipling wrote: > > I added polls to settings.py : > INSTALLED_APPS = [ > 'django.contrib.admin', > 'django.contrib.auth', >

Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
I added polls to settings.py : INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'polls.apps.PollsConfig', ] Then I tried the migration:

Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Well that's strange... The problem appears to be that your polls.urls file is not getting included in your project's URLConf (since the error message in your first post says that the only URL tried was *admin/* ). I'm not sure if adding the app to INSTALLED_APPS is necessary for an app's

Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
Jorr, No, I did not modify the settings.py file, because the tutorial specifically states: Note Ignore the warning about unapplied database migrations for now; we’ll deal with the database shortly. Here is a link to the tutorial: https://docs.djangoproject.com/en/1.9/intro/tutorial01/

Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Did you add 'polls' to your list of INSTALLED_APPS in your settings.py? After that you should run > python manage.py migrate like the terminal is suggesting to you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Igor, Yes, the server was started. Here are the contents of the command window including after trying to go to the website. C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver Performing system checks... System check identified no issues (0 silenced). You have unapplied

Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Yes, the server was started. Here are the contents of the command window, including after trying to go to the website. C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver Performing system checks... System check identified no issues (0 silenced). You have unapplied migrations;

Re: Error running Django tutorial

2016-02-28 Thread Igor Makarov
Mike, do you have the server restarted? As for me, the shell window says: Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. воскресенье, 28 февраля 2016 г., 18:15:24 UTC+3 пользователь Mike Kipling написал: > > Here are the two urls.py files: > >

Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Here are the two urls.py files: polls/urls.py from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), ] mysite/urls.py from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/',

Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
On Saturday, February 27, 2016 at 2:06:42 PM UTC-6, James Schneider wrote: > > > On Feb 27, 2016 11:49 AM, "Mike Kipling" > wrote: > > > > I am working through the Django tutorial Writing your first Django app, > part 1. > > I am using Windows 10, python 3.5.1 and Django

Re: Error running Django tutorial

2016-02-27 Thread James Schneider
On Feb 27, 2016 11:49 AM, "Mike Kipling" wrote: > > I am working through the Django tutorial Writing your first Django app, part 1. > I am using Windows 10, python 3.5.1 and Django 1.9.2 . > > In the Write your first view section: > after writing the polls/views.py and

Error running Django tutorial

2016-02-27 Thread Mike Kipling
I am working through the Django tutorial *Writing your first Django app, part 1.* I am using Windows 10, python 3.5.1 and Django 1.9.2 . In the *Write your first view* section: after writing the polls/views.py and polls/urls.py files, and modifying the manage/urls.py file, and