Re: Stuck with Django Tutorial Part 4

2023-03-15 Thread Chetan Ganji
It seems to me like you are not entering the url name In place of 'polls:vote' try to enter the name of the url given to that url For Your Reference https://docs.djangoproject.com/en/4.1/ref/templates/builtins/#url I hope it helps you! Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com h

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
Here. urls.py from django.urls import path from . import views app_name = 'polls' urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('/', views.DetailView.as_view(), name='detail'), path('/results/', views.ResultsView.as_view(), name='results'), path('/vote

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Prosper Lekia
This should be your views for vote. from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import Choice, Question # ... def vote(request, question_id): question = get_object_or_404(Questi

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Brian Carey
I think you need to check your urls.py. ⁣Get BlueMail for Android ​ On Mar 14, 2023, 1:33 PM, at 1:33 PM, Nithin Kumar wrote: >question.id or question_id both gave the same result. >These are the views. > >from django.shortcuts import get_object_or_404, render >from django.http import HttpResp

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Sandip Bhattacharya
Can you share your urls.py? > On Mar 14, 2023, at 1:33 AM, Nithin Kumar wrote: > > Hi, > > Stuck with this problem > > https://docs.djangoproject.com/en/4.1/intro/tutorial04/ > > NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not > found. 1 pattern(s) tried: ['polls/

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
question.id or question_id both gave the same result. These are the views. from django.shortcuts import get_object_or_404, render from django.http import HttpResponse, Http404, HttpResponseRedirect from django.template import loader from .models import Choice,Question from django.urls import reve

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Prosper Lekia
Let's see your views. On Tue, Mar 14, 2023, 14:32 Muhammad Juwaini Abdul Rahman wrote: > question_id=question.id > > On Tue, 14 Mar 2023 at 21:22, Nithin Kumar > wrote: > >> Hi, >> >> Stuck with this problem >> >> https://docs.djangoproject.com/en/4.1/intro/tutorial04/ >> >> NoReverseMatch at /

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Muhammad Juwaini Abdul Rahman
question_id=question.id On Tue, 14 Mar 2023 at 21:22, Nithin Kumar wrote: > Hi, > > Stuck with this problem > > https://docs.djangoproject.com/en/4.1/intro/tutorial04/ > > NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not > found. 1 pattern(s) tried: ['polls/ > My detail.ht

Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
Hi, Stuck with this problem https://docs.djangoproject.com/en/4.1/intro/tutorial04/ NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not found. 1 pattern(s) tried: ['polls/ {% csrf_token %} {{ question.question_text }} {% if error_message %}{{ error_

Re: Mozilla Django Tutorial.

2021-10-26 Thread Luigi Cleffi
Can you send me the path to find ? Em ter., 26 de out. de 2021 10:31, KUYESO ROGERS <2019bce...@std.must.ac.ug> escreveu: > Class Model name(models.Model): > > > Please show your code > > On Tue, Oct 26, 2021, 3:47 PM Cheikh SOW wrote: > >> Hello everyone, >> >> I'm new to Django and I'm current

Re: Mozilla Django Tutorial.

2021-10-26 Thread Luigi Cleffi
Try "pip freeze > requirements.txt" if YouTube already have this requirements file. Try: "pip install -r requirements.txt". If it doesn't work, you may need tô reinstall django because that is a package error. Em ter., 26 de out. de 2021 09:46, Cheikh SOW escreveu: > Hello everyone, > > I'm new

Re: Mozilla Django Tutorial.

2021-10-26 Thread KUYESO ROGERS
Class Model name(models.Model): Please show your code On Tue, Oct 26, 2021, 3:47 PM Cheikh SOW wrote: > Hello everyone, > > I'm new to Django and I'm currently following the Mozilla tutorial to be > familiar with this Python written framework. > > The issue I have is that after building my dat

Mozilla Django Tutorial.

2021-10-26 Thread Cheikh SOW
Hello everyone, I'm new to Django and I'm currently following the Mozilla tutorial to be familiar with this Python written framework. The issue I have is that after building my database models and typing : '*python3 manage.py makemigrations*' I get the error "*AttributeError: 'Model' objec

How to get a chinese django tutorial

2021-10-18 Thread 银色配色
Dear Team, I recently learned django tutorials on django's website, which has tutorials in Chinese, but it's not convenient to visit django's website in my work environment. Is there any way to download the Chinese version of Django tutorial PDF file or epub file? -- You receiv

Re: [DJANGO-TUTORIAL]

2021-10-16 Thread Lalit Suthar
- https://tutorial.djangogirls.org/en/ - https://docs.djangoproject.com/en/3.0/intro/tutorial01/ - https://www.youtube.com/playlist?list=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW On Sat, 9 Oct 2021 at 04:05, David Nugent wrote: > For interactive web pages, you are (almost) necessa

Re: [DJANGO-TUTORIAL]

2021-10-08 Thread David Nugent
For interactive web pages, you are (almost) necessarily talking about javascript. Given your background and what you're most likely to be doing next, I would suggest looking at D3.js - Data-Driven Documents (d3js.org) . It is a somewhat large but very mature library for visual r

Re: [DJANGO-TUTORIAL]

2021-10-08 Thread Adebayo Michael
Firstly, try to have a basic knowledge on HTML and CSS. Before you start Django. They are relatively simple to understand. Check w3 school for tutorial on them. On Fri, 8 Oct 2021, 3:17 pm Chakresh Singh, < chakresh.si...@alumni.iitgn.ac.in> wrote: > Dear All, > I am beginning my first task on D

[DJANGO-TUTORIAL]

2021-10-08 Thread Chakresh Singh
Dear All, I am beginning my first task on Django. I come from a physics background and am a novice in web development. My aim is to develop an interactive web-page where users see some keywords and can choose a pair, which then connects them with a line. I should be able to record these pairs a

Django Tutorial: please help rewrite form on classes?

2021-03-18 Thread Alexey
I can't rewrite the mysite/polls form into classes.help me. I get different errors every time.     {% csrf_token %}     {{ form.as_p }}     # forms.py: from django import forms from .models import Choice class VoteForm(forms.ModelForm):     choices = [(ch.pk, ch.choice_text) for ch in Choi

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-17 Thread Ronnie Atuhaire
Thanks! On Tue, Mar 16, 2021 at 5:01 PM Joel Goldstick wrote: > > > On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire > wrote: > >> Hello everyone, I joined this platform like a week ago not because I am >> experienced but because I am new to Django and would like to connect with >> like minded

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Saad Olamilekan
Check your files, your app files may not in the right directory On Tue, Mar 16, 2021, 3:46 PM Kelvin Sajere Simply because you haven't specified that URL path in your project, so it > would naturally not be able to find it. The path I see from your error > image, is the /admin/ path. > > On Tue,

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Kelvin Sajere
Simply because you haven't specified that URL path in your project, so it would naturally not be able to find it. The path I see from your error image, is the /admin/ path. On Tue, Mar 16, 2021 at 10:02 Joel Goldstick wrote: > > > On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire > wrote: > >> He

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Joel Goldstick
On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire wrote: > Hello everyone, I joined this platform like a week ago not because I am > experienced but because I am new to Django and would like to connect with > like minded people. > > I have experienced an HTTP404 Error while following this tutorial

Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Ronnie Atuhaire
Hello everyone, I joined this platform like a week ago not because I am experienced but because I am new to Django and would like to connect with like minded people. I have experienced an HTTP404 Error while following this tutorial at *https://docs.djangoproject.com/en/3.1/intro/tutorial03/

Re: Python Django Tutorial for absolute beginners

2020-08-25 Thread Madhav Nandan
Dear Balaji, Recently I joined your session on google meet and it was nice to experience. I'm good at python, databases and backend technologies. Can I present a session on 'Using databases in python' to the fellow community? Regards, 9170459494 On Mon, Aug 24, 2020 at 10:42 PM Balaji Shetty w

Python Django Tutorial for absolute beginners

2020-08-24 Thread Balaji Shetty
Dear Participants 🌷*I am sharing you a video to learn Python Django with development of project and app. You can download source code of this video also from github link* https://www.youtube.com/watch?v=EY-XY2HDo_c 🌷 *Sourcecode* https://github.com/balaji-shetty/Django-Sample-Proj-With-CO

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 >

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 grou

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-08 Thread Andréas Kühne
Cool! Keep learning - I think that django is probably one of the best COMPLETE frameworks there is - And now shortly with async support, it will be even better :) The way you can quickly prototype something that later on can continue into production is one of Pythons and Djangos strengths. Regar

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Thank you for the feedback and advices. I will sure check out Django girls. The mix of parameters was no problem, I figured that out. I was not sure though how to write the path. But now, at least I know how to send arguments and that's bothered me for a while. Now I am on the right track again. :-

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Andréas Kühne
Hi, Sorry for mixing those things up - I was writing from the top of my head and not really paying that much attention perhaps :) I would like to give you a few other pointers: 1. This is a bit biased but I would try to get away from function based views - because they tend to make you do a lot o

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
This is what I had to do. Thanks to you I know how to think and fixed it. xx="EXTRA ARGUMENT" return HttpResponseRedirect(reverse('bsapp:result', args=(question.id, xx,))) path('//result/', views.result, name='result'), def result(request, question_id, xx): Den torsdag 7 maj 2020 k

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Hi Again I finally got it to work now. return HttpResponseRedirect(reverse('bsapp:result', args=(question.id, xx,))) path('//result/', views.result, name='result'), (I think you mixed up the order of int:question here, you wrote question:int) xx="EXTRA ARGUMENT" def result(request, question

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
Hello Andréas and thank you for the answer. But unfortunately it doesn't seem to do what I want or I just don't get it. What I really try to do is very simple, but I have been trying for two days now and feel I am close to give up on Django. Because if the simpliest and most common thing in we

Re: Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Andréas Kühne
Hi Peter, The thing is you need to handle this with your url files, your view function (or class) and your reverse call. So for example: urls.py path('blog///', detail) views.py: def detail(request, category, question_id): and finally the call to reverse: reverse('polls:results', args=(cate

Django tutorial, HttpResponseRedirect, sending multiple arguments

2020-05-07 Thread Ekberg Peter
I know something like this has been asked before but I never seen any answer that I can understand or that works. But I am very new on Django so maybe I could have missed it. But there must be an easy answer to my question. I am following the tutorial for Django and at section 4 they use the

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: urlpatt

Re: Django Tutorial

2020-03-19 Thread Imadonmwinyi Osazee
name='index' You had errors because you missed the = symbol On Mar 19, 2020 2:13 PM, "Eddie Nash" wrote: > I am going through the tutorial yet when I check to see if it is working, > I get this error code. Please help me fix this! > > > Exception in thread django-main-thread: > Traceback (most r

Re: Django Tutorial

2020-03-19 Thread Daniel Hepper
There seems to be an equal sign missing after “name”: path('', views.index, name='index') > Am 19.03.2020 um 14:13 schrieb Eddie Nash : > >  > I am going through the tutorial yet when I check to see if it is working, I > get this error code. Please help me fix this! > > > Exception in thread

Re: Django Tutorial

2020-03-19 Thread Ryan Nowakowski
Please post your entire urls.py On March 19, 2020 1:18:40 AM CDT, Eddie Nash wrote: >I am going through the tutorial yet when I check to see if it is >working, I >get this error code. Please help me fix this! > > >Exception in thread django-main-thread: >Traceback (most recent call last): > Fil

Django Tutorial

2020-03-19 Thread Eddie Nash
I am going through the tutorial yet when I check to see if it is working, I get this error code. Please help me fix this! Exception in thread django-main-thread: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932,

Error while learn by Django Tutorial Chapter 4

2020-02-19 Thread DamnGeniuses' Squad
NoReverseMatch at /polls/1/ Reverse for 'vote' with arguments '('',)' not found. 1 pattern(s) tried: ['polls/(?P[0-9]+)/vote/$'] Request Method: GET Request URL: http://127.0.0.1:8000/polls/1/ Django Version: 3.0.3 Exception Type: NoReverseMatch Exception Value: Reverse for 'vote' with argumen

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-14 Thread Mohamed A
my nooby assumtion led > you in the wrong direction. > > Sorry, thanks again > Julius > > > > Am Sonntag, 12. Januar 2020 22:56:43 UTC+1 schrieb Julius Lange: >> >> Dear people, >> >> currently doing the django tutorial! Really enjoy it so far. >&

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-13 Thread Julius Lange
Okay, thank you guys! I figured it out. The reason was another issue and my nooby assumtion led you in the wrong direction. Sorry, thanks again Julius Am Sonntag, 12. Januar 2020 22:56:43 UTC+1 schrieb Julius Lange: > > Dear people, > > currently doing the django tutorial! Rea

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-13 Thread zana mhamad
Internet facebook -- 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://gr

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-13 Thread zana mhamad
فيسبوك تثبيت شبكة انترنت علي تطبيقات علي جهاSamsung a7 2016 -- 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

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Khaleel Ahmed H. M. Shariff
d all mankind, & if anyone saved a life, it would be as if he saved the life of all mankind. On Mon, Jan 13, 2020 at 3:26 AM Julius Lange wrote: > Dear people, > > currently doing the django tutorial! Really enjoy it so far. > > I am using PyCharm, Django version 3.0.2, Pyt

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
e > > On Sun, Jan 12, 2020 at 1:56 PM Julius Lange > wrote: > >> Dear people, >> >> currently doing the django tutorial! Really enjoy it so far. >> >> I am using PyCharm, Django version 3.0.2, Python version 3.7.1. >> >> In part 2 <https://docs

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Jorge Gimeno
Hmm. Not doing that on mine. It is correct that __str__() is defined in models.Model, which your models inherit from. I don't know why it would be considered an error. -Jorge On Sun, Jan 12, 2020 at 1:56 PM Julius Lange wrote: > Dear people, > > currently doing the django tu

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
__str__() represent string in a readable format. If you removed __str__() it will show you object 1, object 2 in admin panel. On Mon, Jan 13, 2020, 3:25 AM Julius Lange wrote: > Dear people, > > currently doing the django tutorial! Really enjoy it so far. > > I am using PyCharm,

Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Julius Lange
Dear people, currently doing the django tutorial! Really enjoy it so far. I am using PyCharm, Django version 3.0.2, Python version 3.7.1. In part 2 <https://docs.djangoproject.com/en/3.0/intro/tutorial02/> of the tutorial it comes to a point i need to insert a __str__ function. I add it

Re: Generic Views in Django Tutorial Not Working

2019-11-01 Thread Nijo Joseph
se request > what you would like to see specifically. I am at > https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better > in > the Django tutorial and it seems replacing HTTPRequests with GenericViews > broke the web server. I followed the instruct

Re: Generic Views in Django Tutorial Not Working

2019-11-01 Thread Kasper Laudrup
Hi Mike, On 01/11/2019 09.14, Mike Starr wrote: Hi! There's a lot of error message to copy and paste so please request what you would like to see specifically. I am at https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in the Django tutorial a

Generic Views in Django Tutorial Not Working

2019-11-01 Thread Mike Starr
Hi! There's a lot of error message to copy and paste so please request what you would like to see specifically. I am at https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in the Django tutorial and it seems replacing HTTPRequests with Generic

Re: about Django tutorial

2019-07-24 Thread Lim Kai Wey
To 田村佑太, *Is it fine if you show use your urls.py in the polls app as well? I believe the problem is caused from there. * *Regards,* *Kai Wey* On Wed, Jul 24, 2019 at 7:03 PM 田村佑太 wrote: > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > >1. ad

Re: about Django tutorial

2019-07-24 Thread Avi gehlot
Medium.com On Wed, 24 Jul 2019 at 4:33 PM, 田村佑太 wrote: > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > >1. admin/ > > The current path, polls/, didn't match any of these. > > > what is the problem of this? > > > at ./mysite/mysite/urls.py > > I

about Django tutorial

2019-07-24 Thread 田村佑太
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 1. admin/ The current path, polls/, didn't match any of these. what is the problem of this? at ./mysite/mysite/urls.py I wrote this code. from django.contrib import admin from django.urls import

Re: Error running Django tutorial

2019-07-24 Thread Will Brown
> one. > > On Sunday, 28 February 2016 01:20:39 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 *Write

Help filtering choice_set based on size of set in Django Tutorial

2019-07-09 Thread James Boulger
Hello, I am posting because I am working on the Django documentation tutorials and am currently on the testing portion (https://docs.djangoproject.com/en/2.2/intro/tutorial05/). In this tutorial where we are building the polls application, there is a portion where we wish to restrict what page

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-07-05 Thread sachin thakur
I am also facing the same problem i am using PostgreSQL data base . please do share this issue bug *Thanks and Kind Regards* *Sachin Thakur* about

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Joe Reitman
The notes say: - The exact output will vary depending on the database you are using. The example above is generated for* PostgreSQL.* Are you using the default SQLite? You could try running migrate and then checking the tables to see if the constraint was added using a DB admin viewer.

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-28 Thread Jasmine Smith
Looking into, will get back to you soon. Thanks. On Thu, Jun 27, 2019 at 8:15 PM Rudy Quiroga Gamboa wrote: > Hi, I have the same problem, did you find the problem or the solution ? > > > El martes, 28 de mayo de 2019, 20:44:44 (UTC-4), K Tan escribió: >> >> Hi, everyone, >> >> This is my first

Re: need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-06-27 Thread Rudy Quiroga Gamboa
Hi, I have the same problem, did you find the problem or the solution ? El martes, 28 de mayo de 2019, 20:44:44 (UTC-4), K Tan escribió: > > Hi, everyone, > > This is my first time using Django and I think I'm missing something or > there is a bug. I am following the instructions on ( > https://

Re: Error while doing django tutorial part 2

2019-06-01 Thread rf
;> File "/usr/lib64/python3.6/site-packages/django/db/models/base.py", >> line 513, >> in __repr__ >> return '<%s: %s>' % (self.__cl

need help - following django tutorial to create polls database - missing "on delete cascade" - using django 2.2.1 with mysql 8.0

2019-05-28 Thread K Tan
Hi, everyone, This is my first time using Django and I think I'm missing something or there is a bug. I am following the instructions on ( https://docs.djangoproject.com/en/2.2/intro/tutorial02/) and I've just added the following chunk of code to "polls/models.py". (I copied/pasted so I know it's

Re: Error running Django tutorial

2019-01-04 Thread Nitin Tiwari
ing of tutorial our project name is also mysite, so i thought that I have to create new urls.py out side. but you have to to use inbuilld one. On Sunday, 28 February 2016 01:20:39 UTC+5:30, Mike Kipling wrote: > > I am working through the Django tutorial *Writing your first Django app, >

Re: Bokeh Server via Django Tutorial

2018-11-14 Thread Kirubel Tadesse
Hi Jonathan Could you please explain to me where you are starting the bokeh server I see that you are creating a session. I tried to the same thing I keep on getting an error message. I just want to understand how you are starting the Bokeh server and if there is a way to know if bokeh serve has

Re: Bokeh Server via Django Tutorial

2018-10-30 Thread Kirubel Tadesse
Hi Jonathan Bennett, I was trying to do something very similar with bokeh and Django. I was going through your github Linode_instructions.txt. I was wondering if I need to step up a user stuff. # Setting up the user I am not trying to deploy anything at this point. On Wednesday, Novembe

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 usin

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
t;> Ruth >> >> On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, 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 . >

Re: Error running Django tutorial

2018-09-20 Thread Asong nkemzi
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 Django tutorial *Writing your first Django app, >> part 1.* >> I am using Win

Re: Error while doing django tutorial part 2

2018-09-09 Thread Pravinkumar Kale
rn self.question_text > AttributeError: 'Choice' object has no attribute 'question_text' > >>> > > > > On Saturday, 26 May 2018 22:49:04 UTC+5:30, Kranthi Kiran wrote: >> >> Hello User, >> >> I am following django tutorial at &

Re: Problem in the Django tutorial?

2018-08-21 Thread Daniel Hepper
lls/style.css Hope that helps, Daniel On Tue, Aug 21, 2018 at 2:01 PM Alesh Houdek wrote: > I'm doing the Django tutorial and got stuck on the static files section: > https://docs.djangoproject.com/en/2.1/intro/tutorial06/#customize-your-app-s-look-and-feel > > > Could

Problem in the Django tutorial?

2018-08-21 Thread Alesh Houdek
I'm doing the Django tutorial and got stuck on the static files section: https://docs.djangoproject.com/en/2.1/intro/tutorial06/#customize-your-app-s-look-and-feel Could not get the style.css file to work despite triple-checking everything. After much research, I got it to work by a

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
I truly appreciate the suggestions, Melvyn. Thanks so much! On Thu, Jul 19, 2018, 10:28 PM Melvyn Sopacua wrote: > On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > > Yeah, I just discovered that after posting this. I'm ashamed to admit > that > > single error had me baffled for da

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Melvyn Sopacua
On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > Yeah, I just discovered that after posting this. I'm ashamed to admit that > single error had me baffled for days. No shame needed, because at some point you read over and over it and read the same wrong thing as right in your brain.

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Yeah, I just discovered that after posting this. I'm ashamed to admit that single error had me baffled for days. Thank you so much for the quick reply! On Thu, Jul 19, 2018, 11:35 AM Dylan Reinhold wrote: > You are missing the > in the path > path(' Should be > path('/results/', views.ResultsVi

RE: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Matthew Pava
etail'), # ex: /polls/5/results/ path('/vote/', views.vote, name='vote'), ] The red line should probably have this path: /results/ From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of roflcopterpaul Sent: Thursday, July 19, 2

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Dylan Reinhold
You are missing the > in the path path('/results/', views.ResultsView.as_view(), name='results'), On Thu, Jul 19, 2018 at 11:18 AM, roflcopterpaul wrote: > Hello, everyone! I have run into a problem I cannot figure out. I have > spent days searching online and trying different things in my code,

Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Hello, everyone! I have run into a problem I cannot figure out. I have spent days searching online and trying different things in my code, but I cannot figure out where this problem is stemming from. I would truly appreciate any insights. Admittedly, I am scrub enough that I'm not even sure of

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 .

Re: Error while doing django tutorial part 2

2018-05-26 Thread 'Anthony Flury' via Django users
li/mysite/polls/models.py", line 25, in __str__ > return self.question_text > AttributeError: 'Choice' object has no attribute 'question_text' > >>> > > > >> On Saturday, 26 May 2018 22:49:04 UTC+5:30, Kranthi Kiran wrote: >> Hello User,

Re: Error while doing django tutorial part 2

2018-05-26 Thread Fidel Leon
self.question_text > AttributeError: 'Choice' object has no attribute 'question_text' > >>> > > > > On Saturday, 26 May 2018 22:49:04 UTC+5:30, Kranthi Kiran wrote: >> >> Hello User, >> >> I am following django tuto

Re: Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
xt AttributeError: 'Choice' object has no attribute 'question_text' >>> On Saturday, 26 May 2018 22:49:04 UTC+5:30, Kranthi Kiran wrote: > > Hello User, > > I am following django tutorial at > https://docs.djangoproject.com/en/2.0/intro/tutorial02/

Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
Hello User, I am following django tutorial at https://docs.djangoproject.com/en/2.0/intro/tutorial02/ After modifying polls/models.py and when running python3.6 manage.py shell again I am getting the following error at the following >>> q = Question.objects.get(pk=1) # Display an

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
hey Dylan, two days ago anthony said to troubleshoot myself, the answer was there only.Since i am a beginer i tried myself but couldn't find out the error also i was tired as i just reached from office and started questioning On Friday, May 11, 2018 at 11:19:43 PM UTC+5:30, Dylan Reinhold wrote:

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Dylan Reinhold
Is it grounds hogs day, didn't this exact error get asked two days ago and Daniel answered then? On Fri, May 11, 2018 at 10:40 AM, Daniel Hepper wrote: > The error message is a hint that Django is not properly initialized. > > My guess is that you are using a plain python shell, which you starte

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
ok ok i got it thanks On Friday, May 11, 2018 at 11:11:00 PM UTC+5:30, Daniel Hepper wrote: > > The error message is a hint that Django is not properly initialized. > > My guess is that you are using a plain python shell, which you started > using the command „python“. > > Use „python manage.py s

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
i wrote the code inside mysite directory but still the error shows On Friday, May 11, 2018 at 11:11:00 PM UTC+5:30, Daniel Hepper wrote: > > The error message is a hint that Django is not properly initialized. > > My guess is that you are using a plain python shell, which you started > using the

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Daniel Hepper
The error message is a hint that Django is not properly initialized. My guess is that you are using a plain python shell, which you started using the command „python“. Use „python manage.py shell“ instead. As explained in part 2 of the tutorial, this properly initializes Django. Hope that help

While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to resolve

2018-05-11 Thread Avitab Ayan Sarmah
Exceptions: Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> from django.utils import timezone >>> from polls.models import Question Traceback (most recent call last): File "", line 1, in File "C:\Users\AVITABAYAN\mysite\polls\models.py", line 7,

Re: While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread Daniel Hepper
I kind of agree with James, but I think a) that the exception message is not really self-explanatory and b) the instructions in the tutorial at this point are somewhat unclear. You started a plain Python shell with the command "python". You should have used "python manage.py shell" instead, as was

Re: While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread James Farris
Instead of giving the answer, I suggest looking at the Traceback section you posted below because the answer is there. Giving you the answer will not help your trouble shooting skills. Sent from my mobile device > On May 9, 2018, at 8:03 AM, Avitab Ayan Sarmah wrote: > > shell: > > >>> imp

While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread Avitab Ayan Sarmah
shell : >>> import datetime>>> from django.utils import timezone>>> from polls.models >>> import Question>>> # create a Question instance with pub_date 30 days in >>> the future>>> future_question = Question(pub_date=

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
Thank you Kirby I found the error and now my code is running fine. Thanks again On Tue 8 May, 2018, 10:26 PM C. Kirby, wrote: > Seriously? > > path(' Should be > path('/', views.DetailView.as_view(), name='detail'), > > You have posted several time in the last two days and every issue you have >

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread C. Kirby
Seriously? path('/', views.DetailView.as_view(), name='detail'), You have posted several time in the last two days and every issue you have had has been a typo. People on this board are happy to help with django issues, but you should be really using an IDE that will catch at least some of the

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
please mention where exactly i am missing >? On Tuesday, May 8, 2018 at 10:18:43 PM UTC+5:30, C. Kirby wrote: > > You are missing a closing '>' in your detail url > > On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote: >> >> polls/urls.py: >> >> from django.urls import path >>

Re: While going through Django tutorial i commited an error because of which i am not able to execute python manage.py runserver. The exceptions and codes are mentioned below: In exception it is menti

2018-05-08 Thread Avitab Ayan Sarmah
Please mention where exactly I missed > On Tue 8 May, 2018, 10:19 PM C. Kirby, wrote: > You are missing a closing '>' in your detail url > > On Tuesday, May 8, 2018 at 12:42:20 PM UTC-4, Avitab Ayan Sarmah wrote: >> >> polls/urls.py: >> >> from django.urls import path >> >> from . import views

  1   2   3   4   5   6   >