Re: Tutorial for a Django web store

2023-04-14 Thread Sebastian Jung
Get django oscar sandbox and most things are allready implemented Michael Starr schrieb am Mi., 12. Apr. 2023, 08:02: > Does anyone know of a good tutorial (preferably with github files) that > teaches you how to make a web store in Django? It seems like a basic > literacy skill for Django progr

Re: Tutorial for a Django web store

2023-04-14 Thread Adewunmi Oladele
Can you please share Denis ivanov YouTube channel link ? On Thu, Apr 13, 2023, 6:58 PM Bradie Poa wrote: > There's no full toturial that does that. The only man who tried is Denis > ivanov on his YouTube channel but still he did backend alone and frontend > alone. > > Try him out. Maybe you may

Re: Tutorial for a Django web store

2023-04-13 Thread Bradie Poa
There's no full toturial that does that. The only man who tried is Denis ivanov on his YouTube channel but still he did backend alone and frontend alone. Try him out. Maybe you may earn something 😉😉 On Thu, Apr 13, 2023, 16:47 Alexandre Felgueiras < alexandre.r.felguei...@gmail.com> wrote: > Hel

Re: Tutorial for a Django web store

2023-04-13 Thread Alexandre Felgueiras
Helo Michael, I've been studying this e-book and I think it's amazing. There is another books from the same author for more advanced users. check on: https://www.amazon.com.br/Django-Beginners-Build-Websites-Python/dp/1735467200 Best regards -- You received this message because you are subs

Re: Tutorial Django app, part 1

2023-01-24 Thread 'Kasper Laudrup' via Django users
On 24/01/2023 12.14, javier lopez wrote: I'm new with Django. Trying to code te sample of tutorial i got the error that shows in the images. Python version 3.11.1 and 3.9 too. Same error. Anyone can help me? Both errors are mentioned in the tutorial at https://docs.djangoproject.com/en/4.1/

Re: tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-24 Thread Samapika Nayak
create a virtual env, install django On Tuesday, March 22, 2022 at 6:43:02 PM UTC+5:30 paul.ka...@gmail.com wrote: > root@videotron:~ # django-admin startproject mysite > root@videotron:~ # python manage.py runserver > python: can't open file 'manage.py': [Errno 2] No such file or directory > ro

Re: tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-24 Thread Shah Tech
you must first your current directory to your project directory mysite: in window type: cd mysite and then try python manage.py runserver On Thursday, March 24, 2022 at 6:51:53 PM UTC+5 Kasper Laudrup wrote: > On 24/03/2022 08.05, harsh jain wrote: > > Still facing issue ? > > This course will he

Re: tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-24 Thread Kasper Laudrup
On 24/03/2022 08.05, harsh jain wrote: Still facing issue ? This course will help you - Advanced web development course online Please fuck off with your spam. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: tutorial 1 problems from djangoproject website - not working, do not exactly understand

2022-03-24 Thread harsh jain
Still facing issue ? This course will help you - Advanced web development course online On Tuesday, 22 March 2022 at 18:43:02 UTC+5:30 paul.ka...@gmail.com wrote: > root@videotron:~ # django-admin startproject mysite > root@video

Re: Tutorial Part 1

2020-05-10 Thread maninder singh Kumar
the polls URL needs to be added to urls.py. [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, May 10, 2020 at 1:15 AM Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application definition

RE: Tutorial Part 1

2020-05-09 Thread ngallen4
Where is your polls/views.py??? It should at least return HttpResponse From: django-users@googlegroups.com On Behalf Of tejasri mamidi Sent: Sunday, 10 May 2020 08:13 To: django-users@googlegroups.com Subject: Re: Tutorial Part 1 Change mysite.urls , Path(' ',include(

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Change mysite.urls , Path(' ',include('polls.url'))... You were not created any polls function your view and and not import any polls view in your mysite.urls On Sun, May 10, 2020, 01:15 Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application definition > > INSTALLED

Re: Tutorial Part 1

2020-05-09 Thread Randy Zeitvogel
This is from my mysite/settings.py file: # Application definition INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfile

Re: Tutorial Part 1

2020-05-09 Thread Nagaraju Singothu
Dear Sir, First add your app in settings.py,then after URLs.py from django.urls import path,include from ur(appname) import views On Sat 9 May, 2020, 5:42 AM Randy Zeitvogel, wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu 1

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Did ,you place ur appname in installed app in settings On Sat, May 9, 2020, 05:42 Randy Zeitvogel wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1. Second > environment is Fedora 31, python 3.7.5, and Django

Re: Tutorial Part 1

2020-05-09 Thread ola neat
Check your app url, does the url match with wath u have on your browser, On Sat, May 9, 2020, 01:59 Luqman Jr wrote: > Hello > Did you create urls.py under polls app? > You should have urls.py under polls app which will list all urls fall > under this app. > Then share with us polls/urls.py and

Re: Tutorial Part 1

2020-05-08 Thread Luqman Jr
Hello Did you create urls.py under polls app? You should have urls.py under polls app which will list all urls fall under this app. Then share with us polls/urls.py and polls/views.py so that we can help more on this. On 9 May 2020, 03:11 +0300, Randy Zeitvogel , wrote: > I just started working w

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread Awa M. Kinason
You are having an error on your template. {%url 'polls:detail' question.id%} instead of {% url 'polls:detail' question.id %} Take note of the space after or before the percentage sign. Django Templating Engine requires you to respect the rules. If you even add double spaces where you are supposed

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread sahil khan
Plz go on my you tube channel you will get your error regarding sollution on my channel Link : https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw On Sun, 19 Apr 2020, 7:49 pm Jorge Gimeno, wrote: > If settings.DEBUG == False, then you have to put the allowed addresses > in settings.ALLOW

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-19 Thread Jorge Gimeno
If settings.DEBUG == False, then you have to put the allowed addresses in settings.ALLOWED_HOSTS. If Debug is True, then I'm not sure what's going on. -Jorge On 4/18/20, Markus Grossniklaus wrote: > Thanks a lot Chucky! > No error message > displays at least one dot! fine > > http://127.0.0.1:8

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-18 Thread Markus Grossniklaus
Thanks a lot Chucky! No error message displays at least one dot! fine http://127.0.0.1:8000/admin/ shows ERR_CONNECTION_REFUSED even with no Proxy active and iptables shows no restrictions e.g. everything is allowed How could I debug this? On Wednesday, April 15, 2020 at 12:27:21 AM UTC+2, Mar

Re: Tutorial Problems...

2019-08-11 Thread Mike Dewhirst
On 11/08/2019 3:25 am, aman kumar wrote:  hello... While using field type null ... what is difference between "Empty string" and Null=True i.e null ..value for "no data"  in string based field...? Empty string is "" Django likes to convert str=None (ie no value) into an empty strin

Re: Tutorial Problems...

2019-08-10 Thread aman kumar
hello... While using field type null ... what is difference between "Empty string" and Null=True i.e null ..value for "no data" in string based field...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Re: Tutorial Problems...

2019-08-08 Thread Mike Dewhirst
On 9/08/2019 2:43 am, Emil Lilja wrote: 1. Yeah i know but I've copied the code straight of the tutorial so getting a SyntaxError seems odd. Well you know what Sherlock Holmes would say. Eliminate the impossible and what is left must be true. You can only detect a syntax error by examing you

Re: Tutorial Problems...

2019-08-08 Thread Emil Lilja
1. Yeah i know but I've copied the code straight of the tutorial so getting a SyntaxError seems odd. 2. Don't think it has anything to do with the migration. I just don't see the output of runserver until i terminate it with ctrl-c. Noticed recently that it only does this on Git Bash and not wi

Re: Tutorial Problems...

2019-08-07 Thread Mike Dewhirst
Two things ... Look at the error near the bottom of the traceback and notice it says there is a syntax faux pas on line 21 of one of your files. If you find and fix that python will advance to your next error - if any. And runserver is asking you to Ctrl-c and do python manage.py migrate --se

Re: Tutorial Problems...

2019-08-07 Thread Emil Lilja
Hey, Thanks for your reply! So yeah i did the tutorial from scratch again and noticed like you were aiming at that the server was actually running. Even though the tutorial clearly states that you should get the following output when running *runserver, *I only seem to get this after i termin

Re: Tutorial Problems...

2019-08-06 Thread Mike Dewhirst
On 6/08/2019 10:32 pm, Emil Lilja wrote: Hey all, I realize I'm somewhat of a buffoon on the subject but I've tried learning Python on my free time the past couple months and want to get in to Django. In my opinion that confirms you are not a buffoon but rather you are strategically right o

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jani Tiainen
You might want to try Visual Studio Code as well. It has some integration with Python (for example code completion and flake8 and pylint checks on the fly). On Fri, Nov 30, 2018 at 8:04 AM Scott Reed wrote: > Thanks again Jorge! I'm such a noob :/ But this is a great learning > experience. >

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
We all were there once. Keep moving forward! -Jorge On Thu, Nov 29, 2018, 10:04 PM Scott Reed Thanks again Jorge! I'm such a noob :/ But this is a great learning > experience. > > On Thursday, November 29, 2018 at 9:55:00 PM UTC-8, jlgimeno71 wrote: >> >> >> >> On Thu, Nov 29, 2018, 9:40 PM Sc

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Scott Reed
Thanks again Jorge! I'm such a noob :/ But this is a great learning experience. On Thursday, November 29, 2018 at 9:55:00 PM UTC-8, jlgimeno71 wrote: > > > > On Thu, Nov 29, 2018, 9:40 PM Scott Reed wrote: > >> Thanks for you response Jorge! I see, that's just to check that it >> worked, an

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
On Thu, Nov 29, 2018, 9:40 PM Scott Reed Thanks for you response Jorge! I see, that's just to check that it > worked, and I'm supposed to quit the server to keep using the command > prompt. > Another question: I can't figure out the next step - opening the views.py > file in the command prompt. >

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Scott Reed
Thanks for you response Jorge! I see, that's just to check that it worked, and I'm supposed to quit the server to keep using the command prompt. Another question: I can't figure out the next step - opening the views.py file in the command prompt. I've tried navigating to the directory and ente

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
On Thu, Nov 29, 2018, 4:27 PM Scott Reed Hi, I'm starting the Django polls tutorial. > I've followed all the steps so far: installed Python and Django, set up > the virtual environment, etc. > I'm at the point where you start the Django development server by running > 'py manage.py runserver' in t

Re: Tutorial part 3 help: bulleted-list

2018-07-17 Thread premalatha balan
Hi all, I was doing ok until https://docs.djangoproject.com/en/1.11/intro/tutorial03/#namespacing-url-names part. Not sure what happened. The error is NoReverseMatch at /poll "Reverse for 'detail' not found. 'detail' is not a valid view function or pattern name." "Error during template ren

Re: Tutorial part 3 help: bulleted-list

2018-07-16 Thread premalatha balan
Thank you so much. I have corrected the return including the context dict now. Thank you. It has solved it. Thank you again. On Monday, 16 July 2018 13:13:08 UTC+1, Jason wrote: > > two problems: you're just returning a string in your response, not the > template. > Nor are you using the contex

Re: Tutorial part 3 help: bulleted-list

2018-07-16 Thread Jason
two problems: you're just returning a string in your response, not the template. Nor are you using the context dict anywhere. Look at the example in the tutorial: https://docs.djangoproject.com/en/2.0/intro/tutorial03/#a-shortcut-render How does your index method differ from what's there? --

Re: Tutorial part 3 help: bulleted-list

2018-07-16 Thread premalatha balan
Hi, I am having the same problem that it does not display bulleted list, but I do not have a typo. Below is what I have got. *mysite>>polls>>view.py* from django.http import HttpResponse from django.template import loader from .models import Question def index(request): latest_question_list

Re: Tutorial help Blank Front page

2018-06-29 Thread Simran Jeetkaur
thnku for this it worked for me too... :) On Friday, August 11, 2017 at 11:50:16 AM UTC-7, Александр Христюхин wrote: > > Hi, > > You should open "http://127.0.0.1:8000/polls/"; instead of " > http://127.0.0.1:8000/";. > Take a look at the error Django gives you, all registered URLs are listed

Re: Tutorial 1 doesn't work

2018-04-28 Thread Fidel Leon
Line 6 of polls/views, should be: def index(request): instead of def index*[*request*]*: Python function names get arguments using parenthesis, not square brackets. Fidel Leon El 28 de abril de 2018 a las 13:54:13, giwon@nexstreaming.com ( giwon@nexstreaming.com) escribió: I did exa

Re: tutorial 2.0 - 1: problem

2018-03-15 Thread Bernd Wechner
Looks to me like runserver is telling you more or less what's up. What it's not telling you is what you've not told us, namely teh URL you're navigating to. But the tutorial suggests " http://localhost:8000/polls/"; and if you are using that, and you have set up

Re: tutorial 2.0 - 1: problem

2018-03-15 Thread Carl Brubaker
We could use some code from your myapp/urls.py and your myapp/polls/urls.py files. Without it, we don't know what is wrong. On Thursday, 15 March 2018 20:03:57 UTC-4, Denny Terreno wrote: > > Hello, > I'm new to django, and I'm trying to learn it, but I'm stuck on the 1st > part of the tutorial:

Re: Tutorial 2 - Ver2.0 - python manage.py makemigrations polls - Error message when running

2018-02-04 Thread Daniel Hepper
Hi, you have a typo in your models.py in this line: votes = models.InterferField(default=0) It should be IntegerField. Cheers, Daniel CanuckT schrieb am So. 4. Feb. 2018 um 21:06: > Hi, new to programming and trying the tutorial out for Django. > > Using this guide: https://docs.djangoproj

Re: tutorial p.6 problem: style.css isn't loaded

2017-12-27 Thread Jason
Correct. Django's dev server has file watchers looking at the files currently in the project when its started, but creating new files doesn't add them to said file watchers. Only solution is to restart the dev server process. -- You received this message because you are subscribed to the Goo

Re: tutorial p.6 problem: style.css isn't loaded

2017-12-27 Thread bowei xu
Same error happens to me, Restart mysite with `python manage.py runserver` fix it. It may because new created files not auto detected by django. Best, On Wednesday, February 5, 2014 at 9:45:20 AM UTC-8, Janek Warchoł wrote: > > Hello, > > i'm following Django's tutorial (very nice, btw) and st

Re: tutorial on mongodb and django

2017-12-11 Thread Genzo Vandervelden
I can't say I have experience in using Django and MongoDB but you can take a look at these: - https://django-mongodb-engine.readthedocs.io/en/latest/topics/setup.html - https://django-mongodb-engine.readthedocs.io/en/latest/tutorial.html - https://github.com/django-nonrel/mongodb-eng

Re: tutorial on mongodb and django

2017-12-11 Thread Ruben Alves
I've seen someone posting here some time ago the Djongo (Django + Mongo): https://github.com/nesdis/djongo Em domingo, 10 de dezembro de 2017 19:34:18 UTC-2, Krishna Neupane escreveu: > > Hey I am trying to learn Django and wanted to implement it with mongoDB. > Are there any pointers where I co

Re: tutorial on mongodb and django

2017-12-11 Thread Jason
I would avoid mongo, because Django's ORM is explicitly designed for relations and doesn't translate well to NoSQL DBs. As an alternative, look into mysql or postgres, with a big recommendation of the latter. On Sunday, December 10, 2017 at 4:34:18 PM UTC-5, Krishna Neupane wrote: > > Hey I am

Re: tutorial site not working

2017-11-05 Thread Vijay Khemlani
did you keep the manage.py shell open while making the code changes? you need to close/open it again On Sat, Nov 4, 2017 at 10:36 PM, Kyle Foley wrote: > Let me also show what I have placed in the terminal > > >>> Question.objects.get(pk=1) > > > > >>> q = Question.objects.get(pk=1) > > >>> q.w

Re: tutorial site not working

2017-11-04 Thread Kyle Foley
Let me also show what I have placed in the terminal >>> Question.objects.get(pk=1) >>> q = Question.objects.get(pk=1) >>> q.was_published_recently() I also don't understand why I am outputting: And the website says the output should be: -- You received this message because you are s

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
I called a consultant and he told me to write the following code INSTALLED_APPS = ( 'polls', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', and that solv

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
ok, i redit it from scratch and when i wrote python manage.py startapp polls I was supposed to get polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py tests.py views.py but instead the apps.py did not create On Saturday, November 4, 2

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread knbk
Hi, What version of Django are you using? Starting in 1.9, the startapp command definitely creates an apps.py with a PollsConfig class, so you're likely using an older version of Django. You can either upgrade Django to 1.11 or use the tutorial for whichever version you have installed. Marte

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Antonis Christofides
The tutorial does not ask you to put anything in that file because the command "python manage.py startapp polls" automatically puts in that file what is needed. If your apps.py file does not contain anything, the most likely explanation is that you accidentally deleted its contents while you were e

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Kyle Foley
But if you look at the previous page where the apps.py is created https://docs.djangoproject.com/en/1.11/intro/tutorial01/ you'll see that in no case do they ask you to put anything in the apps.py It's blank, there's no pollsconfig in that file. On Saturday, November 4, 2017 at 3:01:15 PM UTC-7

Re: tutorial site refers to a module which does not exist

2017-11-04 Thread Antonis Christofides
Hello, This is the second part of the tutorial. In the first part, at some point you were told to execute "python manage.py startapp polls". This should have created an appropriate apps.py file. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-11-04 23:09, Kyle Foley w

Re: Tutorial part 4 - get_queryset

2017-10-17 Thread Tony King
Thanks James, that is a big help and I'm sure the link will provide some worthwhile extra reading, although I've clearly got a lot to learn anyway. Regards, Tony -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Tutorial part 4 - get_queryset

2017-10-17 Thread James Schneider
On Oct 17, 2017 4:44 AM, "tking" wrote: Hi, I've decided to teach myself Django and I'm enjoying the tutorial which I've so far found exceptionally detailed but I'm a bit confused by the get_queryset function in the IndexView class. Essentially my question is what calls this function? I alwa

Re: Tutorial writing views help

2017-08-14 Thread Sol Chikuse
Hi Kareem, In your template you have your code as: {% for question in latest_question %} According to your context dictionary in your index view, the above template code should be: {% for question in latest_question_list %} And then you should go to the url 127.0.0.1:8000/polls/ Regards.

RE: Tutorial writing views help

2017-08-14 Thread Matthew Pava
Subject: Re: Tutorial writing views help I've found my mistake with the index.html file. {% for question in latest_question %} http://question.id/>}}/">{{question.question_text}} herf is suppose to be href. But http://127.0.0.1:8000/ still says page not found. -- Y

Re: Tutorial writing views help

2017-08-14 Thread Kareem Hart
> > *I've found my mistake with the index.html file.* > {% for question in latest_question %} {{question.question_text}} herf is suppose to be href. But http://127.0.0.1:8000/ still says page not found. -- You received this message because you are subscribed to the Google Groups

Re: Tutorial writing views help

2017-08-14 Thread Kareem Hart
*Here is my template.* > *index.html* >> > {% if latest_question_list %} {% for question in latest_question %} {{question.question_text}} {% endfor %} {% else %} No polls are available. {% endif %} *Here is my command prompt log.* Microsoft Windows [Version 10.0

Re: Tutorial writing views help

2017-08-14 Thread Sol Chikuse
Hi Kareem, Regarding the 404 page error, you do not have to put a dot (.) at the end of your URL. Django does not have such kind of a pattern match in your urls. *127.0.0.1:8000/polls/ *is the correct URL. Having said that, how does your index template look like?

Re: Tutorial help Blank Front page

2017-08-11 Thread Александр Христюхин (roboslone)
Hi, You should open "http://127.0.0.1:8000/polls/ " instead of "http://127.0.0.1:8000/ ". Take a look at the error Django gives you, all registered URLs are listed there. > On 11 Aug 2017, at 20:56, Kareem Hart wrote: > > I am currently doi

Re: tutorial on using dbshell?

2017-05-23 Thread Jim Anderson
James, Thank you, again. I have install the sqlite command line package and all is working for me. Jim A. On Mon, May 22, 2017 at 6:35 PM, James Schneider wrote: > > > On May 22, 2017 3:07 PM, "Jim Anderson" wrote: > > Hi James, > > I'm looking at the sqlite3 documentation now, but I'm still

Re: tutorial on using dbshell?

2017-05-22 Thread James Schneider
On May 22, 2017 3:07 PM, "Jim Anderson" wrote: Hi James, I'm looking at the sqlite3 documentation now, but I'm still not quite sure how to run the dbshell. Once I am in the shell, I assume that I can run sqlite3 commands as needed. But when I enter: *% python manage.py dbshell* I get the follo

Re: tutorial on using dbshell?

2017-05-22 Thread Jim Anderson
Hi James, I'm looking at the sqlite3 documentation now, but I'm still not quite sure how to run the dbshell. Once I am in the shell, I assume that I can run sqlite3 commands as needed. But when I enter: *% python manage.py dbshell* I get the following error messages: *setting.py: BASE_DIR =

Re: tutorial on using dbshell?

2017-05-22 Thread James Schneider
On May 22, 2017 2:20 PM, wrote: I'm working with Django 1.10.3 and I'm trying to look at the database tables generated by Django using makemigrations and migrate. I was looking to use 'python manage.py sql', but it looks like that is no longer available. In a recent question to Django users, I w

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-09 Thread Brady Lee
The "polls_choice" table in database file db.sqlite3 has no records, so no radio buttons show up. I manually added 2 records to the "polls_choice" table, then I have the radio buttons showed up. On Tuesday, February 7, 2017 at 6:17:58 PM UTC+8, ludovic coues wrote: > > Have you added some choi

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-07 Thread ludovic coues
Have you added some choices to the "What's up?" question ? What you see is that question.choice_set.all is empty. The following snippet will give you some output: {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% empty %} Sorry, no available choices. {% endfor %

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-07 Thread Brady Lee
Same issue here, no radio buttons show up. ubuntu 16.04.1 LTS python 3.5.2 django 1.10.5 I've tried {{ question|pprint }} and {{ question.choice_set.all|pprint }} for debugging, got: Now trying to figure out where the problem is. On Thursday, October 20, 2016 at 11:52:59 PM UTC+8, Othniel

Re: Tutorial 5 (Testing) seems to have an error

2016-12-28 Thread Nicolai Bjerre Pedersen
Hi Eric, Did you find the bug? I have the same issue running python 2.7.12 and django 1.10.4 Den mandag den 15. februar 2016 kl. 20.02.55 UTC+1 skrev Tim Graham: > > It looks like you have a Python path problem or that your project isn't > structured correctly such that the model is being regis

Re: Tutorial 5 (Testing) seems to have an error

2016-12-28 Thread Nicolai Bjerre Pedersen
I figured it out. I had to either delete __init__.py in my root directory (where manage.py is located) or call python manage.py polls.tests instead of just python manage.py polls Den mandag den 15. februar 2016 kl. 20.02.55 UTC+1 skrev Tim Graham: > > It looks like you have a Python path problem

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-22 Thread ludovic coues
I would try to add that right before the loop: {{ question|pprint }} {{ question.choice_set.all|pprint }} The result should be something like that the pprint filter is for debugging, you should remove once your issue is fixed. It will make obvious some error like question.choi

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2016-10-21 Thread Othniel Ayinzat
I think the problem is from around: {% for choice in question.choice_set.all %} {{ choice.choice_text }} {% endfor %} This is because i tested outside the loop and i got the radio button, but the whole idea was to loop through the questions and assign a button for the choices. -- You rece

Re: Tutorial part 3 help: bulleted-list

2016-10-18 Thread Johnny McClung
Thanks so much everyone. I looked over those files many times and I couldn't see it. On Tuesday, October 18, 2016 at 5:17:55 PM UTC-4, James Schneider wrote: > > > > On Tue, Oct 18, 2016 at 11:00 AM, Johnny McClung > wrote: > >> I have gotten down to the part where the tutorial reads "Load th

Re: Tutorial part 3 help: bulleted-list

2016-10-18 Thread James Schneider
On Tue, Oct 18, 2016 at 11:00 AM, Johnny McClung wrote: > I have gotten down to the part where the tutorial reads "Load the page by > pointing your browser at “/polls/”, and you should see a bulleted-list > containing the “What’s up” question from Tutorial 2. The link points to the > question’s d

Re: Tutorial part 3 help: bulleted-list

2016-10-18 Thread Vineet Kothari
NYC On Oct 19, 2016 12:57 AM, "Vijay Khemlani" wrote: > You wrote "latest_quesion_list" in the context dictionary key, it should > be "latest_question_list" > > On Tue, Oct 18, 2016 at 3:00 PM, Johnny McClung > wrote: > >> I have gotten down to the part where the tutorial reads "Load the page b

Re: Tutorial part 3 help: bulleted-list

2016-10-18 Thread Vijay Khemlani
You wrote "latest_quesion_list" in the context dictionary key, it should be "latest_question_list" On Tue, Oct 18, 2016 at 3:00 PM, Johnny McClung wrote: > I have gotten down to the part where the tutorial reads "Load the page by > pointing your browser at “/polls/”, and you should see a bullete

Re: tutorial?

2016-02-24 Thread Tanuka Dutta
http://www.django-rest-framework.org/ - Tanuka On Wednesday, 24 February 2016 17:48:17 UTC+5:30, Mitesh Prajapati wrote: > > I'm new to Django/Python world. > > I want references(book/tutorials) to learn "how to build REST APIs with > Django" using ORM? > > > Thanks in advance! > -- You recei

Re: tutorial?

2016-02-24 Thread Rafael E. Ferrero
look for django-rest-framework Rafael E. Ferrero 2016-02-24 4:28 GMT-03:00 Mitesh Prajapati : > I'm new to Django/Python world. > > I want references(book/tutorials) to learn "how to build REST APIs with > Django" using ORM? > > > Thanks in advance! > > -- > You received this message because yo

Re: Tutorial 5 (Testing) seems to have an error

2016-02-15 Thread Tim Graham
It looks like you have a Python path problem or that your project isn't structured correctly such that the model is being registered twice. Does that mean anything to you? I'm not sure if you are also new to Python or just to Django. On Monday, February 15, 2016 at 11:16:51 AM UTC-5, Eric Livin

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread sum abiut
Yes it could be how you have set up your directories. You could try from django.conf.urls import include, url from django.contrib import admin from myproject.polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] On Mon, Feb 1, 2

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread jfragos via Django users
Is it possible that that the way the sys and user paths are set up can cause this problem. When I used the command prompt of python from the python directory I received the error, however, when I changed the directory to c:\djangoprojects\mysite\polls and then imported views it worked fine.

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
What is your app name? are you sure the name is polls??. The solution i mention works. On Mon, Feb 1, 2016 at 9:32 AM, jfragos via Django users < django-users@googlegroups.com> wrote: > I tried your solution and had the same results > > from django.conf.urls import include, url > from django.cont

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
I tried your solution and had the same results from django.conf.urls import include, url from django.contrib import admin from polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] RESULTS Traceback (most recent call last): File

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
The problem is how you import your views form your urls.py you have to import also your poll views from mysite urls.py you should try this: mysite--->mysite--->urls.py from django.conf.urls import patterns, include, url from django.contrib import admin from poll import views urlpatterns = patt

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
That is something I have tried. When I do it that way and run the program there is no error. However, when I attempt to start the server from the command prompt I am presented with the following meesages which ends with 'Import error: No module named views' c:\djangoprojects\mysite>python mana

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
please try: from polls import views or import views On Sun, Jan 31, 2016 at 6:59 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Thank you for the response. Since there are 2 of them I have posted > both. I have highlighted in yellow the places where they reside. I have

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
Thank you for the response. Since there are 2 of them I have posted both. I have highlighted in yellow the places where they reside. I have also attached the outer directory structure showing c:\djangoprojects and also a shot of the mysite structure. I set this up as per the tutorial instru

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
can you post your urls.py On Sun, Jan 31, 2016 at 5:04 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Hi, > I am very new to Python and Django but not to programming. I have > been programming for 30 years. That said I am trying to work my way thru > the Django tutorial pa

Re: Tutorial missing import: Http404

2015-04-10 Thread John Matthew Ian Davis
On Friday, April 10, 2015 at 3:33:36 PM UTC-7, Ramiro Morales wrote: > > On Fri, Apr 10, 2015 at 6:31 PM, John Matthew Ian Davis < > johnmatth...@gmail.com > wrote: > >> obviously one needs to change: >> >> from django.http import HttpResponse, >> >> to >> >> from django.http import HttpResponse,

Re: Tutorial missing import: Http404

2015-04-10 Thread Ramiro Morales
On Fri, Apr 10, 2015 at 6:31 PM, John Matthew Ian Davis < johnmatthewianda...@gmail.com> wrote: > obviously one needs to change: > > from django.http import HttpResponse, > > to > > from django.http import HttpResponse, Http404 > If you are talking about part 3 of the tutorial then it in fact con

Re: tutorial part3 : polls didn't match URL patterns

2014-07-22 Thread aliteralmind
My problem was that I put the file in the wrong place. It says the file should be `mysite/urls.py`, but it really should be `mysite/mysity/urls.py'. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Rob Skidmore
Glad I could help. On Fri, May 23, 2014 at 3:49 PM, Jonathan Querubina wrote: > I have tryied a lot of them, and this one was the salvation > > > http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > > Thanks Rob! > > On May 23, 2014, at 12:17 PM, carlos wrot

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
I have tryied a lot of them, and this one was the salvation http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ Thanks Rob! On May 23, 2014, at 12:17 PM, carlos wrote: > Hi, Digital Ocean have many tutorial > begginner : > https://www.digitalocean.com/comm

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread carlos
Hi, Digital Ocean have many tutorial begginner : https://www.digitalocean.com/community/articles/how-to-deploy-a-local-django-app-to-a-vps advanced: https://www.digitalocean.com/community/articles/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn Cheers On Fri, May 23, 2014 at

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Rob Skidmore
Found this after a digging for a bit. Might help. http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ On Friday, May 23, 2014 4:36:23 AM UTC-6, Jonathan Querubina wrote: > > Hi guys, i am on my first deploy and loosing my hair over this. > > Could anyone send

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread m1chael
You really shouldn't be learning with the dev version as Babatunde Akinyanmi pointed out, but, i'm curious enough to respond have you tried to install Django toolbar to figure out what template is actually being loaded? Maybe that will give you a good idea on where to troubleshoot Mike On Su

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread Babatunde Akinyanmi
This does not answer the question but you really shouldn't be learning with the dev version On 27 Apr 2014 15:38, "rob25" wrote: > Hello, > > I was following the instructions to create a basic poll application with > django 1.8 (dev), but now I'm stuck to this > paragraph

  1   2   3   4   >