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

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

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

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

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

2020-01-14 Thread Mohamed A
the issue is related to PEP8. You need to space it a little bit :) leave an empty line before __str__ . And it is not an error, it is just a warning :) On Mon, Jan 13, 2020 at 11:27 PM Julius Lange wrote: > Okay, thank you guys! > > I figured it out. The reason was another issue and my nooby ass

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! Really enjoy it so

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
Hi, May Peace, Blessings & Mercy of Almighty God be on you! I suggest you share the screen shot of the error. It would be more useful if code comes with the errors. Thanks in advance. God Bless You! God Bless India!! -- Love & Regards Dr. Khaleel Ahmed H. M. Managing Director, Tanzanite Realty

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

2020-01-12 Thread Omkar Parab
Atom, sublime never show this error. On Mon, Jan 13, 2020, 10:09 AM Jorge Gimeno wrote: > 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, 2

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 tutorial! Really en

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 version

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
It looks like you have a typo: urlpatterns = [ # ex: /polls/ path('', views.IndexView.as_view(), name='index'), # ex: /polls/5/ # the 'name' value as called by the {% url %} template tag path('/', views.DetailView.as_view(), name='detail'), # ex: /polls/5/results/ path(

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,

Re: Django tutorial 2.0 problem on admin site

2018-03-28 Thread Zhizhong Kang
Thank you. You are right there are problems in both my mysite/urls.py and polls/urls.py. I fixed it by following the tutorial. On Wednesday, March 28, 2018 at 10:35:01 AM UTC-7, Daniel Hepper wrote: > > My guess is that there is a problem with your URL definition. > > Double-check your mysite/url

Re: Django tutorial 2.0 problem on admin site

2018-03-28 Thread Daniel Hepper
My guess is that there is a problem with your URL definition. Double-check your mysite/urls.py and polls/urls.py When in doubt, post the source of both files (preferably as text, not screenshot). Hope that helps, Daniel On Wednesday, March 28, 2018 at 6:25:12 PM UTC+2, Zhizhong Kang wrote: > >

Re: Django tutorial part 4: unresolved error?

2017-11-04 Thread Su-Shin Ang
Hi all, I just realised my error, so no worries. In my 'polls/urls.py', I am supposed the specify the value of the parameter, 'app_name', as 'polls'. Instead, I used 'app_names' rather than 'app_name' - typo. My bad! Ed On Saturday, November 4, 2017 at 10:52:33 PM UTC, Su-Shin Ang wrote: >

Re: Django tutorial part 4: 'utf8' codec can't decode byte 0xa0 in position 22431

2017-08-01 Thread Jani Tiainen
Hi, I really suggest you to use real editor or even IDE. For editor I've been using VS Code. For IDE PyCharm is pretty nice. 2.8.2017 3.53 "'SNATCHGIRL1' via Django users" < django-users@googlegroups.com> kirjoitti: > Hi Jani, > > thank you for the response. It was really helpful. Instead of u

Re: Django tutorial part 4: 'utf8' codec can't decode byte 0xa0 in position 22431

2017-08-01 Thread 'SNATCHGIRL1' via Django users
Hi Jani, thank you for the response. It was really helpful. Instead of using word I edited the html files with Notepad. Now it's working :) Am Dienstag, 1. August 2017 23:01:49 UTC+10 schrieb Jani Tiainen: > > Hi. > > You need to make sure that file is really encoded as utf8 and contains > val

Re: Django tutorial part 4: 'utf8' codec can't decode byte 0xa0 in position 22431

2017-08-01 Thread Jani Tiainen
Hi. You need to make sure that file is really encoded as utf8 and contains valid unicode characters. Some editors, specially in windows tend to do lot of black magic to display characters correctly. On 01.08.2017 09:18, 'SNATCHGIRL1' via Django users wrote: Hi everyone, I am a Django ne

Re: Django tutorial - Misleading instructions

2017-06-30 Thread ecas
As Tim said, the APP_DIRS flag enables the app template loader. https://docs.djangoproject.com/en/1.11/ref/templates/api/#django.template.loaders.app_directories.Loader "Loads templates from Django apps on the filesystem. For each app in INSTALLED_APPS

Re: Django tutorial - Misleading instructions

2017-06-29 Thread Tim Graham
The 'g_auth/templates' directory should be searched because of 'APP_DIRS': True. Is 'g_auth' in INSTALLED_APPS? On Thursday, June 29, 2017 at 9:54:27 PM UTC-4, Justin Stubbs wrote: > > Hi Guys, > > Im following the tutorial > https://docs.djangoproject.com/en/1.11/intro/tutorial03/ and have foun

Re: Django Tutorial Issues

2017-05-04 Thread René Fleschenberg
Hi Ivan, It is very likely that your problem is caused by one of these: - `question` is not assigned to the template context - `question` is assigned to the template context, but it has a wrong value (e.g. `None`) - the question has no `id` (it is not saved to the database yet). This then re

Re: Django Tutorial | sqlmigrate command ending in error

2017-05-01 Thread Nikhil Reddy
Ok..Sorry about that. I haven't done any modifications to polls/migrations/0001_initial.py or settings files that got created by default. I've attached both files. Please review. Thanks, NJ On Sunday, 30 April 2017 19:30:28 UTC+5:30, Daniel Roseman wrote: > > You haven't given nearly enough

Re: Django Tutorial | sqlmigrate command ending in error

2017-05-01 Thread Dilraj sachdev
By this limited information, just guessing could be a problem with path of sqlite db file D On Friday, 21 April 2017 14:10:43 UTC+1, Nikhil Reddy wrote: > > Hi, > > I am going through this tutorial > . When I execute > the command: "py

Re: Django Tutorial | sqlmigrate command ending in error

2017-04-30 Thread Daniel Roseman
You haven't given nearly enough information to help you. You need at least to post the contents of your polls/migrations/0001_initial.py, and your DATABASES settings. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django Tutorial | sqlmigrate command ending in error

2017-04-30 Thread Nikhil Reddy
Can anyone kindly help me on this issue? Thanks, Nikhil On Friday, 21 April 2017 18:40:43 UTC+5:30, Nikhil Reddy wrote: > > Hi, > > I am going through this tutorial > . When I execute > the command: "python manage.py sqlmigrate polls 000

Re: Django tutorial HTTP Error 404

2017-03-26 Thread ludovic coues
This might be the most often asked question on this mailing list. I'm pretty sure the code is perfectly fine, but you missed a little step in the tutorial. The third line of the error message is saying you opened http://127.0.0.1:8000/ The "Write your first view" chapter finish with "Go to http://

Re: Django tutorial HTTP Error 404

2017-03-26 Thread Melvyn Sopacua
On Sunday 26 March 2017 07:41:06 Paweł Balawender wrote: > I'm a Django newbie on Windows and try to follow its official tutorial > . I've done > everything - as I think - completely fine Almost. You're told to test runserver *before* cre

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-23 Thread t0mgs
I think I figured it out - I was rstartin **nginx** when I was should have been restarting my app server, **Gunicorn**. Surprisingly, restarting Gunicorn crashed my server Looking into it and will come back here if I get stuck again. Thanks for the swift reply, btw:) On Thursday, February

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-22 Thread Dylan Reinhold
Post your admin.py file and make sure that admin.py file is in your app folder. For #3, when you added your app and ran makemigrations it should have built a migration file for any of your models in model.py. On Wed, Feb 22, 2017 at 1:20 PM, t0mgs wrote: > Hi there, > > This is my first time i

Re: Django Tutorial 2: No changes detected in app 'polls'

2017-01-24 Thread Tim Graham
That's not true. The tutorial should work as stated. Does polls/migrations really not contain 0001_initial.py? On Tuesday, January 24, 2017 at 12:52:20 PM UTC-5, Андрей Воскресенский wrote: > > it need to be installed as 'polls' > > вторник, 24 января 2017 г., 14:34:47 UTC+2 пользователь Luna Tu

Re: Django Tutorial 2: No changes detected in app 'polls'

2017-01-24 Thread Андрей Воскресенский
it need to be installed as 'polls' вторник, 24 января 2017 г., 14:34:47 UTC+2 пользователь Luna Tuna написал: > > my polls/models.py is a copy of the tutorials', and the app is under > mysite/settings.py/INSTALLED_APPS as 'polls.apps.PollsConfig'. > > python manage.py makemigrations polls > > giv

Re: Django Tutorial Part 5, Test detail view with a past question failure.

2017-01-20 Thread jorrit787
You mean that after you make the changes the tutorial gives you the test still fails? It is supposed to fail the first time before you make the changes. On Thursday, January 19, 2017 at 8:21:38 PM UTC+1, Vpeguero wrote: > > I'm currently working through the django tutorial for v1.10. On part 5

Re: django tutorial part 2: clarification about INSTALLED APPS

2016-05-16 Thread Mike Dewhirst
On 17/05/2016 1:42 AM, Asi Dimbez wrote: Hi, I'm a newbie, there is thing not clear to me in the tutorial, part 2. I left part 1 with poll app working ok. In the tutorial, part 2, I read about INSTALLED_APPS :" That holds the names of all Django applications that are activated in this Django in

Re: Django tutorial part 3 - question_id vs question.id

2016-04-16 Thread Peter of the Norse
On Mar 26, 2016, at 8:04 AM, jorrit...@gmail.com wrote: > > I believe Django lets you access the pk field of a table (which is created > automatically unless you define it explicitly on your model) in multiple > ways: self.pk, self.id, and self._id. Someone correct me if I’m > wrong. You can’t

Re: Django tutorial part 3 - question_id vs question.id

2016-04-06 Thread Acetone
This is awesome, and I appreciate the time you spent writing it. Besides just answering the question I had, this also helped me make some new connections around OOO topics. Also, I do not intend to use the question id as a numbering system - I was just trying to access the id for its own sake

Re: Django tutorial part 3 - question_id vs question.id

2016-03-27 Thread James Schneider
> > In trying to update my templates after I successfully finished part 3 of > the tutorial, I found that I could write something like > You're looking at the results of question {{ question.id }}: "{{ > question.question_text }}" > and get: You're looking at the results of question 1: "What's up?"

Re: Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread Acetone
Cool, I can try those to see how it works. Thank you. On Saturday, March 26, 2016 at 7:04:13 AM UTC-7, jorr...@gmail.com wrote: > > I believe Django lets you access the pk field of a table (which is created > automatically unless you define it explicitly on your model) in multiple > ways: self.

Re: DJANGO TUTORIAL

2016-03-22 Thread Bob Gailer
On Mar 21, 2016 7:24 PM, "Anthony W Smith" wrote: > > When I follow django tutorial on the django site for the polls app I keep getting the error after runnig the python manage.py runserver command it says no modsule named my site. You could 1) show us your directory structure 2) delete the direc

Re: DJANGO TUTORIAL

2016-03-22 Thread Elorm Koku
where are you running the ./manage.py runserver it should be in the same root Agbeko Frank +233 0243 013 730 On Tue, Mar 22, 2016 at 11:10 AM, Rafael E. Ferrero < rafael.ferr...@gmail.com> wrote: > do you already have your site on setttings.py ? > > > Rafael E. Ferrero > > 2016-03-21 20:24 G

Re: DJANGO TUTORIAL

2016-03-22 Thread Rafael E. Ferrero
do you already have your site on setttings.py ? Rafael E. Ferrero 2016-03-21 20:24 GMT-03:00 Anthony W Smith : > When I follow django tutorial on the django site for the polls app I keep > getting the error after runnig the python manage.py runserver command it > says no modsule named my site.

Re: Django tutorial part 4...omission?

2015-11-14 Thread James Schneider
> > I am wondering if Part 4 of the "Writing you first Django App" tutorial is > missing a section about using the .as_view() function in the relevant > urls.py file when implementing class based views? The tutorial discussed > how to write a class base view, but never instructs about how to make t

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hey guys, I am happy to announce that it finally works. The problem was that there was an additional 'qq' in my settings.py file on line 44.(no idea how it got there) I have posted my entire input / output here for viewing and discussion ... CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 06:04, Cai Gengyang wrote: > > This is my entire settings.py file > > … I’m not seeing the problem, but it is certainly there somewhere. Try removing pieces of the settings file until you can isolate the syntax problem which is likely on or before line 45. Copy the orig

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
This is my entire settings.py file """ Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see http

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Gergely Polonkai
Hello, that message is clear: line 45 in your settings.py has a syntax error. That line, however, seem OK, so I guess the previous one is that; maybe a comma is missing. Best, Gergely On 27 Sep 2015 14:26, "Cai Gengyang" wrote: > Hi Tom, > > Following your latest instructions , I have posted my

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 05:26, Cai Gengyang wrote: > > Hi Tom, > > Following your latest instructions , I have posted my input and output > results here. Still getting an error message though it is a different one > this time ( a traceback error ) Oh, much better :) You are now seeing a typo

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, Following your latest instructions , I have posted my input and output results here. Still getting an error message though it is a different one this time ( a traceback error ) CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls man

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 04:39, Cai Gengyang wrote: > > Hi Tom, > So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder > ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) > This puts me in the same directory as the manage.py file. > Then I key in the command

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) This puts me in the same directory as the manage.py file. Then I key in the command : $ python manage.py migrate, but I still get the same er

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> … > However, when I try to run the following command : $ python manage.py migrate > to create the tables in the database, > CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate > input > I get the following error message : > /Library/Frameworks/Python.framework/Versions/2.7

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2015-02-22 Thread Lane Campbell
Zach, I am new to software development, I've spent years on the other side of the spectrum working in telecom and infrastructure. I joined this group to learn more about Python and Django. A developer I spoke with last week at Chicago Python (chipy.org) meetup event introduced me to the concept

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2015-02-22 Thread Zach Swift
I realize this post is several years old, but this is for anyone still looking for an up to date Django tutorial on par with Michael Hartl rails tutorial. Here it is: The title of the book is very deceiving. Its a book about web development with python using django but doing it with test drive

Re: Django tutorial with eCommerce solution

2014-10-22 Thread Gladson Simplício Brito
http://tangentlabs.github.io/django-oscar/ http://www.satchmoproject.com/ http://satchless.com/ https://www.django-cms.org/en/e-commerce/ http://cartridge.jupo.org/ 2014-10-21 22:10 GMT-04:00 Ezequiel Bertti : > Try this: > > http://www.getlfs.com/ > > On Tue, Oct 21, 2014 at 11:28 PM, Mudass

Re: Django tutorial with eCommerce solution

2014-10-22 Thread willyhakim
Hi Mudassar, How are you doing? Have you looked into django oscar? Google it and take it from there. It is the best django ecommerce package. On Tuesday, October 21, 2014 9:11:15 PM UTC-5, Ezequiel Bertti wrote: > > Try this: > > http://www.getlfs.com/ > > On Tue, Oct 21, 2014 at 11:28 PM, Mudas

Re: Django tutorial with eCommerce solution

2014-10-21 Thread Ezequiel Bertti
Try this: http://www.getlfs.com/ On Tue, Oct 21, 2014 at 11:28 PM, Mudassar Hashmi < mudassarhashm...@gmail.com> wrote: > I am looking for a django project based tutorial with fully developed > eStore or a commerce solution. > > Please advise. > > -- > You received this message because you are s

Re: Django Tutorial #5 Testing: return Poll.objects.filter( SyntaxError: 'return' outside function

2014-09-16 Thread Andy McKay
You've got a syntax error in your code, likely wherever you have "return Poll.objects.filter(" in your code. "Outside a function" likely means that you have not correctly indented your code, for example if your return has no indentation. Whitespace in Python is significant and is part of the synta

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
Glad you worked it out. Enjoy the rest of the tutorial! JDB On Thu, Feb 13, 2014 at 1:54 PM, Paul Sermon wrote: > OK thanks for your help. > > I've reviewed through the code, and I had a minor indentation typo that > wasn't helping! > > Anyway, I worked it down to the lines self.assertContains.

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
OK thanks for your help. I've reviewed through the code, and I had a minor indentation typo that wasn't helping! Anyway, I worked it down to the lines self.assertContains. You see that full-stop/period at the end of the string it was looking for? That wasn't in the no polls message! That'll

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
Cool, so we're making progress and you're using the test database now. Since you have two tests failing, I'd comment out the 2nd of the two for now and focus on getting the first to pass, and then moving on to the second. Don't try to do too much at once, and do try and understand what each functio

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread C. Kirby
The names of both those tests imply that your setup will fail them. (I didn't look at the test internals, so I am assuming the test names do what they say) 1. "test_index_view_with_a_future_poll" - you have future polls 2. "test_index_view_with_no_polls" - you have polls in the database On Thu

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
Hmm, you'r right, I think I'm getting confused and attributed the error to something it isn't. Ive just ran the test after changing all the polls to the future, and I still get the errors. The errors are as follows: == FAIL: t

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
"setup_test_environment() installs a template renderer which will allow us to examine some additional attributes on responses such as response.context that otherwise wouldn't be available. Note

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
yes I am running through the manage.py shell (although initially I did not). I am doing the section: https://docs.djangoproject.com/en/1.6/intro/tutorial05/#the-django-test-client On the response.content line, I get back a line listing the polls made earlier. And I presume that is why the t

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Jonathan Baker
Are you running your tests on the command line using: $ python manage.py test polls ...or are you trying to run them from a Python shell? It'd be helpful if you could provide the internal link to the area of the page you linked to that you're experiencing the failure at, as well as the output of

Re: Django Tutorial 5 - First Tests

2014-02-13 Thread Paul Sermon
This is the tutorial: https://docs.djangoproject.com/en/1.6/intro/tutorial05/ I've followed the tutorials pretty much to the letter since tutorial one. Thanks for the help! -Paul On Wednesday, February 12, 2014 10:33:16 PM UTC, jondbaker wrote: > > You're correct in thinking that tests use a t

Re: Django Tutorial 5 - First Tests

2014-02-12 Thread Jonathan Baker
You're correct in thinking that tests use a test database that is independent of your formally defined project database. Without knowing exactly which Django tutorials you are referring to, I can only assume that perhaps you: 1) Have defined initial_data.json fixtures 2) Have defined other fixture

Re: Django Tutorial 2 - Start the development server: why I couldn't get the admin’s login screen?

2013-12-17 Thread hyp3rkyd
seems like you didn't go to /admin/ but / On Monday, December 16, 2013 10:42:59 PM UTC+2, Yuqi Wang wrote: > > I think I did every step before this, the tutorial says there should be > the admin's login screen (fig 1 below), but the screen I got was the same > as it was when no Django project wa

Re: Django Tutorial 2 - Start the development server: why I couldn't get the admin’s login screen?

2013-12-16 Thread Thomas Murphy
Have you enabled admin in settings.py? What about setting up the database and creating the initial super user? On Mon, Dec 16, 2013 at 3:42 PM, Yuqi Wang wrote: > I think I did every step before this, the tutorial says there should be > the admin's login screen (fig 1 below), but the screen I

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Dandall Von
Thanks for succinctly educating me on this matter. I thought it was a quirk but now I know. On Tuesday, June 18, 2013 5:11:07 AM UTC-7, Jani Tiainen wrote: > > On Mon, 17 Jun 2013 21:34:00 -0700 (PDT) > Dandall Von > wrote: > > > I have successfully setup Django with postgreSQL and everything

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Jani Tiainen
On Mon, 17 Jun 2013 21:34:00 -0700 (PDT) Dandall Von wrote: > I have successfully setup Django with postgreSQL and everything is fine > except for a minor problem. > > One the very last section of the the tutorial part 1 where we type > p.pchoice_set.all(), it displays the > choices in the rev

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2013-06-12 Thread Tom Evans
On Wed, Jun 12, 2013 at 3:21 PM, Shailen Sobhee wrote: > You need to download the sqlite3 program. > > This can be obtained here: http://www.sqlite.org/download.html (site up as > of date of posting this reply.) > > 1) Put the sqlite3.exe file in your PATH. If you do not know what that is, > copy

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2013-06-12 Thread Shailen Sobhee
You need to download the sqlite3 program. This can be obtained here: http://www.sqlite.org/download.html (site up as of date of posting this reply.) 1) Put the sqlite3.exe file in your PATH. If you do not know what that is, copy the file in C:\Windows\System32 2) In a command prompt, type:

Re: Django tutorial - The "python manage.py startapp polls" command

2013-05-27 Thread Lucas Magnum
Try: python manage.py syncdb if you already put 'django.contrib.admin' in your INSTALLED_APPS (settings.py file). []'s Lucas Magnum. 2013/5/27 Shashwat Srivastava > The "python manage.py startapp polls" command doesnt create a admin.py > file inside polls. I tried creating a admin.py file an

Re: Django tutorial - change history 24h time format?

2013-05-24 Thread Pepsodent Cola
Hi, I changed my settings.py file like so but nothing happened after I restarted the server "$ python manage.py runserver". USE_L10N = False FORMAT_MODULE_PATH = 'config.locale' So I then followed this tutorial by creating some extra folders and files. http://www.epicserve.com/blog/2011/jul/15/

Re: Django tutorial - change history 24h time format?

2013-05-23 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-USE_L10N 2013/5/23 Pepsodent Cola > Hi, > > I'm reading Part 2 and this chapter *"Explore the free admin > functionality"* of the Django tutorial. > > https://docs.djangoproject.com/en/1.5/intro/tutorial02/#explore-the-free-admin-

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-10-22 Thread Tommy DANGerous
Thanks everyone for the help. I've gone through several tutorials, such as the one on the Django website and at http://lightbird.net/dbe/. Just trying to get more familiar with Django before I start trying to write it on my own. I'll take a look at the Django Book and the youtube videos you all

Re: Django tutorial question

2012-10-06 Thread TJ Marbois
Ah ok thanks was just curious as to why it was still lingering if it wasn't used in the example. just a tiny bit confusing but all still worked! - thanks for the reply. Tj On Sunday, October 7, 2012 12:26:12 AM UTC-4, Lee Hinde wrote: > > TJ Marbois wrote: > > Hi > > going thru the Djang

Re: Django tutorial question

2012-10-06 Thread Lee Hinde
TJ Marbois wrote: Hi going thru the Django tutorial - and got to this part: https://docs.djangoproject.com/en/1.4/intro/tutorial03/#decoupling-the-urlconfs my editor has a python lint program running...and it complains about 'include' at the import being written but unused... is there any r

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread hrishy
And some advanced http://www.youtube.com/watch?v=t_ziKY1ayCo&feature=related From: hrishy To: "django-users@googlegroups.com" Sent: Friday, 28 September 2012, 10:36 Subject: Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michae

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread hrishy
rsday, 27 September 2012, 21:44 Subject: Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl How current is this book?  Intro says it may not be.  It seems to be very well-written, but I don't want to be reading stuff that is too old. I find more recent reference inf

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-27 Thread Fred Stluka
How current is this book? Intro says it may not be. It seems to be very well-written, but I don't want to be reading stuff that is too old. I find more recent reference info, as well as good overviews, guides, etc. at: https://docs.djangoproject.com/ --Fred -

Re: Django Tutorial Equivalent to Ruby on Rails Tutorial by Michael Hartl

2012-09-26 Thread Jonathan Baker
I haven't worked through the RoR tutorial you referenced, but completing http://www.djangobook.com/en/2.0/index.html gave me all of the tools necessary to get projects up and running. hth, Jonathan D. Baker On Wed, Sep 26, 2012 at 1:53 PM, Tommy DANGerous wrote: > Hello, > > I've been through s

  1   2   >