first app

2010-08-04 Thread yalda.nasirian
Hi dear friends finally , i finish my first app tutorials of djangoproject.com . i want to share this whith u , i wish it'll be helpfull . note to change dir template in setting,py . http://www.4shared.com/file/23TzJzLt/mysite.html -- You received this message because you are subscribed t

Re: first app

2010-08-04 Thread Sameer Rahmani
hi , congratulation. why don't you use a VCS like git or mercurial ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: first app

2010-08-04 Thread yalda nasirian
hi sameer can you Give me more explanation? and i don't know how can i access to freenode for IRC .please guide me tanx On Wed, Aug 4, 2010 at 4:30 PM, Sameer Rahmani wrote: > hi , congratulation. > > why don't you use a VCS like git or mercurial ? > > -- > You received this message because

First App: SentenceBuilder

2012-04-15 Thread Corbin Tarrant
Hello everyone, I'm brand new to django and would really appreciate any help getting started. So far I have gone through the first app tutorial and am working on my first app. I have setup the basic structure of the app and also figured out user authentication. The code is on github:

Django first app

2018-01-23 Thread 'anookeen' via Django users
Hi , I am creating django app mentioned at this link (https://docs.djangoproject.com/en/2.0/intro/tutorial02/). When I create new views and add that into urls.py , the new urls aren't recognized (such as it doesn't recognize the question_id mentioned in part 3 of the tutorial). Kindly help me o

Django first app doubt

2009-03-17 Thread Gustavo Senise
Hello fellows, I am starting the django first app and I am having a little trouble trying to understand why the admin area is not working after I changed the views to the Generic Views. Well, I can't access the admin area anymore. It seems that the tutorial doesn't cover the url for a

Starting your first app

2018-05-23 Thread Caleb Bryson
Hey I am new to python and i am trying to use django to make my first web page. I know the basics of python but i am stuck on the step where you start your app. i made sure i have a directory and have installed south to help out but when i type "python mange.py startapp blog" it keeps giving me

Re: Django first app

2018-01-23 Thread Gerardo Palazuelos Guerrero
hi anooken, maybe you want to share your code or as an screenshot cause it does not makes sense. regards, Gerardo. -- Gerardo Palazuelos Guerrero On Tue, Jan 23, 2018 at 12:10 PM, 'anookeen' via Django users < django-users@googlegroups.com> wrote: > Hi , I am creating django app mentioned at

Re: Django first app

2018-01-23 Thread Kasper Laudrup
Hi Anokeen, On 2018-01-23 20:10, 'anookeen' via Django users wrote: Hi , I am creating django app mentioned at this link (https://docs.djangoproject.com/en/2.0/intro/tutorial02/). When I create new views and add that into urls.py , the new urls aren't recognized (such as it doesn't recognize t

Re: Django first app

2018-01-23 Thread Daniel Hepper
Here is a repository that follows the tutorial step by step: https://github.com/consideratecode/django-tutorial-step-by-step/ You can compare your code to what it should look like at the step where you are stuck. Alternatively, post your code and the exact error message here, as others have su

Re: Django first app

2018-01-23 Thread Daniel Hepper
You are using the new syntax to define URLs from Django 2.0 with the old urls() method. If you are using Django 2.0, polls/urls.py should look like this: from django.urls import path from . import views urlpatterns = [ # ex: /polls/ path('', views.index, name='index'), # ex: /polls/5/

Re: Django first app

2018-01-23 Thread 'anookeen' via Django users
Yes I got it Daniel Hepper. Thank you so much for your help. On Wednesday, January 24, 2018 at 6:37:32 AM UTC, Daniel Hepper wrote: > > You are using the new syntax to define URLs from Django 2.0 with the old > urls() method. > > If you are using Django 2.0, polls/urls.py should look like this: >

Re: Django first app doubt

2009-03-17 Thread Jacob Kaplan-Moss
On Tue, Mar 17, 2009 at 12:53 PM, Gustavo Senise wrote: > I am trying to access http://localhost:8000/polls/admin/ and getting a error > 'MediaDefiningClass' object is not iterable. > > Can anyone help!? Can you post the full traceback? I suspect it might be a bug with a change in Django I made

Re: Django first app doubt

2009-03-17 Thread Jacob Kaplan-Moss
> I suspect it might be a bug with a change in Django I made today -- > are you running Django out of SVN? Er, no, the bug I thought was there isn't. Still, it'll always help to tell us what version of Django you're running. Jacob --~--~-~--~~~---~--~~ You receiv

Re: Django first app doubt

2009-03-18 Thread Reiner
I haven't read the tutorials in a while, but shouldn't it be http://localhost:8000/admin/ instead of http://localhost:8000/*polls/*admin/ ? Regards, Reiner On Mar 17, 6:53 pm, Gustavo Senise wrote: > Hello fellows, > > I am starting the django first app and I am having a li

Re: Starting your first app

2018-05-23 Thread Gerardo Palazuelos Guerrero
Please use djangogirls tutorial --- Gerardo Palazuelos Enviado desde mi iPhone El 23/05/2018, a la(s) 14:59, Caleb Bryson escribió: > Hey I am new to python and i am trying to use django to make my first web > page. I know the basics of python but i am stuck on the step where you start > you

Re: Starting your first app

2018-05-23 Thread squal poreover
Your manage.py file isn't in the right directory. On Thu, 24 May 2018, 3:11 am Gerardo Palazuelos Guerrero, < gerardo.palazue...@gmail.com> wrote: > Please use djangogirls tutorial > > --- > Gerardo Palazuelos > Enviado desde mi iPhone > > > El 23/05/2018, a la(s) 14:59, Caleb Bryson > escribió:

Re: Starting your first app

2018-05-23 Thread Melvyn Sopacua
On woensdag 23 mei 2018 22:59:50 CEST Caleb Bryson wrote: > Hey I am new to python and i am trying to use django to make my first web > page. I know the basics of python but i am stuck on the step where you > start your app. i made sure i have a directory and have installed south to > help out :(

"Writing First App" Tutorial - no settings

2013-09-23 Thread Avril Lang
So I'm obviously a newbie and working my way through the tutorial. I created a project using startproject but whereas the tutorial is showing that I should see various files in this directory (__init__.py, settings.py etc) I can only see manage.py. I can connect to the server using runserver

First app using mouse click event

2014-08-22 Thread ASHISH KUMAR GUPTA
Hi, I am very new to web development and started learning django few days back as I really like and enjoy Python. I have done the first tutorial and I understand some of the basic concepts. I want to develop an app where I need to record mouse clicks from the user, can someone please guide me t

Trying out django your first app.

2015-01-01 Thread Siddharth Shah
Actually I was going through the first app example, https://docs.djangoproject.com/en/1.7/intro/tutorial03/ On this particular part I am facing problem while executing http://localhost:8000/polls/ Please find the attachment to see the exact error. -- You received this message because you

How to view/run first app?

2006-03-21 Thread Francisco Reyes
Following the tutorial I completed up to "python manage.py install polls". The tutorial doesn't explain how to actually see what one has done so far and moves to playing with the API. How do I view the poll? Any better tutorials anyone would recommend? I find the installation and tutorials in

Path in First App, Part 3

2020-10-21 Thread rbar...@xcaretresearch.com
I can get to .localhost:8000/polls. but not /polls/detail ror /votes or /results. Here is my code: ``` from django.urls import path from django.contrib import admin from . import views urlpatterns = [ #es: /polls/ path('', views.index, name='index'), # ex: /polls/5 path('/', views.detail, name=

Re: "Writing First App" Tutorial - no settings

2013-09-23 Thread pa xapy
which version of tutorial you working through? which version of django did you use? usually, with latest versions. your settings.py file should be in .../myproject/myproject/ folder. On Monday, September 23, 2013 2:04:07 PM UTC+4, Avril Lang wrote: > > So I'm obviously a newbie and working my way

Re: Trying out django your first app.

2015-01-01 Thread Joel Goldstick
On Thu, Jan 1, 2015 at 3:55 AM, Siddharth Shah wrote: > Actually I was going through the first app example, > https://docs.djangoproject.com/en/1.7/intro/tutorial03/ > On this particular part I am facing problem while executing > http://localhost:8000/polls/ > > Please find the

Re: Trying out django your first app.

2015-01-01 Thread Vijay Khemlani
For me the development server tends to throw that error at random, but does render the page correctly On Thu, Jan 1, 2015 at 2:22 PM, Joel Goldstick wrote: > > > On Thu, Jan 1, 2015 at 3:55 AM, Siddharth Shah > wrote: > >> Actually I was going through the first

Re: Trying out django your first app.

2015-01-01 Thread Collin Anderson
1 AM UTC-5, Siddharth Shah wrote: > > Actually I was going through the first app example, > https://docs.djangoproject.com/en/1.7/intro/tutorial03/ > On this particular part I am facing problem while executing > http://localhost:8000/polls/ > > Please find the attachment to see the ex

Re: How to view/run first app?

2006-03-21 Thread david
I'd suggest moving on through the tutorial, and, as the end of Tutorial 2 states, "When you're comfortable with the admin site, read part 3 of this tutorial to start working on public poll views." That's where you can start seeing the poll app's public view. "Playing with the API" actually = "lea

Re: How to view/run first app?

2006-03-21 Thread Russell Keith-Magee
On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote: > > Following the tutorial I completed up to "python manage.py install polls". > The tutorial doesn't explain how to actually see what one has done so far > and moves to playing with the API. > > How do I view the poll? Its later in the tutor

Re: How to view/run first app?

2006-03-21 Thread Malcolm Tredinnick
On Tue, 2006-03-21 at 19:28 -0500, Francisco Reyes wrote: > Following the tutorial I completed up to "python manage.py install polls". > The tutorial doesn't explain how to actually see what one has done so far > and moves to playing with the API. > > How do I view the poll? At the point that

Re: How to view/run first app?

2006-03-21 Thread Francisco Reyes
Russell Keith-Magee writes: Malcolm Tredinnick <[EMAIL PROTECTED]> > Do you have any specific suggestions? We're always keen to make > improvements, but it is difficult to improve if people say "it sucks" > without giving suggestions. That's why I asked if there was a particular place to send f

Re: How to view/run first app?

2006-03-21 Thread Russell Keith-Magee
On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote: Russell Keith-Magee writes:I will gladly try and give feedback about the docs.. just wanted to knowwhat is the best place to send the feedback to. This list or the developerslist? The user list would be preferable to the developer list, but if

Re: How to view/run first app?

2006-03-22 Thread Joseph Heck
I've had very good luck with the tickets when they're explicit - most got added very quickly, and the ones that didn't had a quick note to let me know why.-joeOn 3/21/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 3/22/06, Francisco Reyes < [EMAIL PROTECTED]> wrote: Russell Keith-Magee wri

Re: How to view/run first app?

2006-03-22 Thread Francisco Reyes
Joseph Heck writes: > I've had very good luck with the tickets when they're explicit - most got > added very quickly, and the ones that didn't had a quick note to let me > know why. Thanks for the pointer. I get to do most of my learning/hacking on weekends.. so look forward to going over th

Re: How to view/run first app?

2006-03-23 Thread lawgon
> > Russell Keith-Magee writes: > I will gladly try and give feedback about the docs.. just wanted to know > what is the best place to send the feedback to. This list or the > developers > list? there is a space for comments on the docs at the foot of each doc - that is the recommended place kg

trying to get my first app up.

2006-03-24 Thread sergio_101
i am having a rough time getting my first app running.. i made a new project called "learningOpps" the admin works fine.. i set up a new application called "opps".. everything seems to have built just fine.. the problem is.. now, i added this to my urls:

Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
Hi rbar, On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: The error message shows that there is a match.  What am I doing wrong? No, the error message shows you that there *isn't* a match: The current path, polls/3/detail, didn't match any of these. Maybe change: path('/', views.d

Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
Hi Ralph, First of all, when using a mailing list, forum or similar like this, please reply to the list instead of the person answering you directly (in this case me). The point of forums and mailing lists like is to share help and information. Anyway: Thanks for the response, however, you

Really annoying problem, First App part 1 related

2010-12-09 Thread Joe
Ok, so when I do exactly as the tutorial says, I get hella errors. I change directory to where I want to store my project which goes fine, then: >>> django-admin.py startproject mysite SyntaxError: invalid syntax with 'startproject' highlighted. The django-admin.py file is in the directory I chang

getting set up on osx for first app!

2008-02-08 Thread newbiedoobiedoo
howdy, i have osx 10.4.10, and see that i do have python. but "import django" failed! i'm slightly unsure how i proceed from here, although I have spent some hours reading various things about installation. Should I install apache? I'm planning to build a simple web-db app. Many thanks... -

Re: trying to get my first app up.

2006-03-24 Thread Luke Plant
On Friday 24 March 2006 16:49, sergio_101 wrote: > but no matter what happens, i get this: > > ViewDoesNotExist at /opps/ > Could not import learningOpps.opps.views. Error was: cannot import > name opps > > can someone tell me what i am doing wrong? Have you created __init__.py files in the rele

Re: trying to get my first app up.

2006-03-27 Thread sergio_101
yes, i have the correct files in the correct places.. i just can't figure out why it doesn't work.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Fwd: Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
By the way, look at the tutorial and you will see that it is not written the way you suggest for "path"/",views.detail, name='detail') The polls index page for a particular questioon_id refers to 'detail.' Another interesting thing is that I just tried all three pages. "votes" worked the othe

Fwd: Re: Path in First App, Part 3

2020-10-21 Thread Kasper Laudrup
Actually, I tried "votes" one more time and it did work. On 10/21/20 12:02 PM, Kasper Laudrup wrote: Hi rbar, On 21/10/2020 20.34, rbar...@xcaretresearch.com wrote: The error message shows that there is a match.  What am I doing wrong? No, the error message shows you that there *isn't* a mat

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Now I am in the situation where "votes" works but "detail" and "results" does not work. So weird.. Well, I just checked "votes" to make sure it works and it doesn't. "index works and takes me to "detail" which, according to the tutorial, is what it supposed to do. Does anybody know this code

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Oh my. I figured it out partially. I was not entering the url correctly in address bar. So, now, "results" and "votes" works but "detail" doesn't. However, "detail" returns when I just enter the basic index url for a given question_id, it just doesn't work for "detail". Is it supposed to b

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
My guess is that the index url is supposed to return "detail," but, then, why even have that "detail" function in the code? I think I have been spending too long on this and need to move. I would appreciate it if anybody would explain this to me. Adding "detail" to the functions just to prov

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
Someone suggest that I add "detail" to the urls.py code at path('/", view detail, name="detail" But that ruins everything. On Friday, October 23, 2020 at 2:32:19 PM UTC-7 rbar...@xcaretresearch.com wrote: > My guess is that the index url is supposed to return "detail," but, then, > why even ha

Re: Re: Path in First App, Part 3

2020-10-23 Thread rbar...@xcaretresearch.com
oh no, trying that ruined everything, now none of them work. I tried again, and now "votes' works but "results" doesn't.. Again, is there anyone who knows this code? On Friday, October 23, 2020 at 2:38:15 PM UTC-7 rbar...@xcaretresearch.com wrote: > Someone suggest that I add "detail" to the

Re: Really annoying problem, First App part 1 related

2010-12-09 Thread Martin Melin
On Thu, Dec 9, 2010 at 7:03 PM, Joe wrote: > Ok, so when I do exactly as the tutorial says, I get hella errors. I > change directory to where I want to store my project which goes fine, > then: django-admin.py startproject mysite > SyntaxError: invalid syntax > > with 'startproject' highlight

Re: Really annoying problem, First App part 1 related

2010-12-09 Thread Joe
Aaaah cheers, I knew there was something fundamentally wrong. Got it working now. On Dec 9, 6:58 pm, Martin Melin wrote: > On Thu, Dec 9, 2010 at 7:03 PM, Joe wrote: > > Ok, so when I do exactly as the tutorial says, I get hella errors. I > > change directory to where I want to store my project

Re: getting set up on osx for first app!

2008-02-08 Thread js
Hi again, OS X has pre-installed apache and Python, but you still have to install Django yourself. Get the latest version from http://www.djangoproject.com/download/ and try installing. Thanks On Feb 9, 2008 3:21 PM, newbiedoobiedoo <[EMAIL PROTECTED]> wrote: > > howdy, > > i have osx 10.4.10,

Re: getting set up on osx for first app!

2008-02-09 Thread newbiedoobiedoo
In order to that it appears I need to install "svn" I downloaded it in one fashion, but it involved a build with little instruction. So I'm fishing another route to do it. Thanks for your pointer btw. On Feb 8, 11:25 pm, js <[EMAIL PROTECTED]> wrote: > Hi again, > > OS X has pre-installed apache

First App: devel server - can't establish a connection to 127.0.0.1

2008-08-24 Thread Rob
; Development server is running at http://127.0.0.1:8000/ response. Hoo-ray! Next, in "Writing your first app..." it says, "Now that the server’s running, visit http://127.0.0.1:8000/ with your Web browser. You’ll see a “Welcome to Django” page, in pleasant, light-blue pastel. It worke

Following "first app" tutorial -- admin site can't find css files

2009-12-06 Thread Arthur
I'm using svn install. I am using the same virtualhost for django and static files, with ADMIN_MEDIA_PREFIX set to '/media/', which I believe was the default. The admin app works fine so far, but the server gives me a 404 on the css files: Using the URLconf defined in testproject.urls,

New to Django, having difficulty creating first app. PLEASE HELP!

2012-08-24 Thread lukedc
Hello everyone, I am doing the django tutorial. https://docs.djangoproject.com/en/1.4/intro/tutorial01/ I am on the part where it says, "The development server". It says: Let's verify this worked. Change into the outer mysite directory, if you haven't already, and run the command python mana

Questions about setting up my first app in django tutorial

2014-04-17 Thread Xiaofeng Feng
I am now trying to set up my first app using django tutorial. However, I was stuck at adding the poll app in part 2. I think I followed all the steps and it goes well before this question. After I change admin.py with from django.contrib import adminfrom polls.models import Poll

Quick thanks to django team - I deployed my first app

2006-03-13 Thread Aaron
I just wanted to drop a note about a new app that I deployed. I recently launched a prototype and users are happy. Basically it uses the gamespy API to query gamespy for a list of active game servers, then contacts each server in turn to obtain critical stats (map being player, number of players

PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-02 Thread Atsunori Kaneshige
Hi Django users, I started using Django recently. I am following the official Django tutorial. I am just at Writing Your First Django App, Part4, and I have been just copying and pasting all codes. But I have a problem in vote. I inserted print(question) and this is printed in detail.html also,

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Jeff Anderson
Rob wrote: Not for me! :( I get a "Unable able to connect. Firefox cannot establish a connection to the server at 127.0.0.1:8000" message. I've searched the group messages and there are only a handful of (unrelated) messages about this. First question: are you really running the development se

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Erik Allik
"python manage.py runserver 0.0.0.0:8000" is always easier than looking up the IP address using ifconfig -- It simply listens on all IP addresses. :) Erik On 24.08.2008, at 4:13, Jeff Anderson wrote: > Rob wrote: >> Not for me! :( I get a "Unable able to connect. Firefox cannot >> establish

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Rob Erbaron
SOLVED. (and a followup question) I was running "python manage.py runserver" in a terminal, and then hit Ctrl-C... and then called up my Web browser. So, duh, I was shutting down the server in the terminal window and THEN browsing Jeesh. /shakes head/ Leaving the terminal window open, runn

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Rob
> First question: are you really running the development server on your > local box? Yes, definitely the local box. Well, let me clarify... I've got Python and Apache on the local box but my Apache Web root is actually on a share on another box (my file server). But I just point to /home/rob/ pat

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-23 Thread Karen Tracey
On Sat, Aug 23, 2008 at 10:42 PM, Rob Erbaron <[EMAIL PROTECTED]>wrote: > > Next question: Is there a way to set up this development server as a > service so I don't have to start it from a terminal each time? > Each time what? It's a development server, expected to be used as you develop your c

Re: First App: devel server - can't establish a connection to 127.0.0.1

2008-08-24 Thread Robert Erbaron
> Each time what? It's a development server, expected to be used as you > develop your code. It's pretty good but not perfect about re-loading itself I typically do a long-term development session for a day or two... then go off an do another project for a while (a couple days.) So I'd shut eve

Re: Following "first app" tutorial -- admin site can't find css files

2009-12-06 Thread Waqqas Jabbar
for test server i add the following lines in settings.py import os SITE_ROOT = os.path.realpath(os.path.dirname(__file__)) STATIC_DOC_ROOT = os.path.join(SITE_ROOT, 'media/') and add the following lines in urls.py if settings.DEBUG == True: urlpatterns += patterns('',(r'^site_media/(?P.*)$

Re: Following "first app" tutorial -- admin site can't find css files

2011-01-02 Thread pedro.a.goncalves
Hi Arthur, Thanks for your post. It was one of the first I found perfectly aligned with my current issue: showing the look & feel one would expect, while following the official django tutorial at http://docs.djangoproject.com/en/dev/intro/tutorial02/ using django's default *development server*

Re: New to Django, having difficulty creating first app. PLEASE HELP!

2012-08-24 Thread MattDale
Glad you are trying out Django. That error is telling you what's wrong The directory that you are in does not include the file "manage.py". Depending on your operating system, when you get this error, get the contents of the directory(windows, type dir and press enter) if the outputted list d

Re: New to Django, having difficulty creating first app. PLEASE HELP!

2012-08-26 Thread lukedc
Thank you Matt, that answered my question!. Thank you so much, it was very nice of you. On Friday, August 24, 2012 6:36:33 PM UTC-5, MattDale wrote: > > Glad you are trying out Django. > > That error is telling you what's wrong The directory that you are in does > not include the file "manage.

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Jorge Andrés Vergara Ebratt
Did you register the app in settings.py? 2014-04-16 23:03 GMT-05:00 Xiaofeng Feng : > I am now trying to set up my first app using django tutorial. However, I > was stuck at adding the poll app in part 2. I think I followed all the > steps and it goes well before this question. After

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Xiaofeng Feng
Yes. INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'TestApp', )

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Ramón Carrillo
; INSTALLED_APPS = ( > 'django.contrib.admin', > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.messages', > 'django.contrib.staticfiles', > &#x

Re: Questions about setting up my first app in django tutorial

2014-04-18 Thread Jason
from django.contrib import admin from polls.models import Poll class PollAdmin(admin.ModelAdmin): pass admin.site.register(Poll, PollAdmin) On Thursday, 17 April 2014 00:03:03 UTC-4, Xiaofeng Feng wrote: > > I am now trying to set up my first app using django tutorial. However, I

Re: Quick thanks to django team - I deployed my first app

2006-03-14 Thread JirkaJ
Hi Aaron, i have one question-how do u handle AlreadyReserved exception? I woould like to make some checks before saving some things in admin interface but i dont know how may i tell the user that there is some error... Aaron wrote: > I just wanted to drop a note about a new app that I deployed.

Re: Quick thanks to django team - I deployed my first app

2006-03-15 Thread Aaron
I could handle it better, but by catching the exception I get a list of all of the reservations that are 'in the way' In the view code: try: new_reservation = server.add_reservation(trainer=trainer,start=start,end=end) except AlreadyReserved, e: error = 'Please choose another server,

Re: Quick thanks to django team - I deployed my first app

2006-03-18 Thread coulix
please do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: Quick thanks to django team - I deployed my first app

2006-03-18 Thread Kenneth Gonsalves
On Sunday 19 Mar 2006 12:26 pm, coulix wrote: > please do. ? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Quick thanks to django team - I deployed my first app

2006-03-18 Thread coulix
do post a full example :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Quick thanks to django team - I deployed my first app

2006-03-20 Thread Aaron
I can't post the full code, it was written for a client and has some secret sauce that I am not at liberty to share, but I'll try to find the time to develop a santized example. In the meantime here is the relevent model part. the thing being reserved is the server, but it could really be anythin

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-02 Thread Atsunori Kaneshige
Oh, one note is that I am using postgresql. everything else except vote function in views.py seems working. Sorry, any help would be really appreciated! Nori On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige wrote: > > Hi Django users, > > I started using Django recently. >

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-02 Thread Nitin Kalmaste
Have you migrated database and added any question there? On Sun, Feb 3, 2019, 8:39 AM Atsunori Kaneshige Oh, one note is that I am using postgresql. > everything else except vote function in views.py seems working. > > Sorry, any help would be really appreciated! > > Nori > > On Saturday, Februar

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-02 Thread Carsten Fuchs
Hi Nori, does the choice actually exist? Can you find it if you query the choices using the ORM in `./manage.py shell`? Best regards, Carsten Am 03.02.19 um 03:59 schrieb Atsunori Kaneshige: > Hi Django users, > > I started using Django recently. > I am following the official Django tutorial.

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Malick Cisse
Hi, copy and paste wouldn't actually make you understand Django. Try to write the code yourself and you see how quickly your understanding grow. On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige wrote: > > Hi Django users, > > I started using Django recently. > I am followi

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Hi Nitin, Thank you for your comment. I did jango-admin startproject mysite and cd mysite, then python manage.py runserver and server is working, so I did opython manage.py startapp polls polls app was successfully created, and stopped the server because I wanted to user postgresql inste

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
On Sunday, February 3, 2019 at 10:22:56 AM UTC-5, Atsunori Kaneshige wrote: > > Hi Nitin, > > Thank you for your comment. > > I did > > jango-admin startproject mysite > > and cd mysite, then > > python manage.py runserver > > and server is working, so I did > > opython manage.py startapp polls

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Hi Carsten, Sorry, are you talking about Writing Your First App, Part2? The page below? https://docs.djangoproject.com/en/2.1/intro/tutorial02/ Yeah, when I tried this, there was something wrong. *I did that again. I copied and pasted my terminal below.* *seems like migration was successful

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Atsunori Kaneshige wrote: > > Hi Carsten, > > Sorry, are you talking about Writing Your First App, Part2? The page below? > https://docs.djangoproject.com/en/2.1/intro/tutorial02/ > > Yeah, when I tried this, there was something wrong. > > *I did that again. I copied and paste

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Nitin Kalmaste
You have to add Choices for each questions you have created in database like the process is same as you used for the questions. On Sun, Feb 3, 2019, 8:53 PM Atsunori Kaneshige Hi Nitin, > > Thank you for your comment. > > I did > > jango-admin startproject mysite > > and cd mysite, then > > python

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Carsten Fuchs
>]> > > > In [34]: q.choice_set.count() > > Out[34]: 3 > > > > choice exits, or correctly working? > > Nori > > On Sunday, February 3, 2019 at 10:55:48 AM UTC-5, Atsunori Kaneshige wrote: > > Hi Carsten, > > Sorry, are you ta

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
Hi Nitin, Thank you! I finally understood what you said. Now working fine. Actually it was working, but I did not understand. Thank you! Nori On Sunday, February 3, 2019 at 11:08:34 AM UTC-5, Nitin Kalmaste wrote: > > You have to add Choices for each questions you have created in database > li

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Atsunori Kaneshige
In [31]: c = q.choice_set.create(choice_text='Just hacking > again',votes=0) > > > > > > In [32]: c.question > > > > Out[32]: > > > > > > In [33]: q.choice_set.all() > > > > Out[33]: , , > ]> > > >

django newbie, having problems with my first app. maybe in the urls.py?

2009-08-09 Thread ezulo...@gmail.com
So i am very new to django and have a little python experience. im using webfraction to host my application and followed their instructions on starting a django webapp. i have the server up and running and im using the 1.0 documentation at djangobook.com, and running django 1.0 for my webapp. I ca

Re: django newbie, having problems with my first app. maybe in the urls.py?

2009-08-10 Thread Sujan Shakya
I m not sure if webfaction automatically deploy your django application, but I guess to need to configure server settings. For instructions on deploying http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index --~--~-~--~~~---~--~~ You received

Re: django newbie, having problems with my first app. maybe in the urls.py?

2009-08-10 Thread gumbah
I read "from mysite.views import hello " in your code... are you sure your webapp is in the "mysite" folder? best regards On Aug 10, 1:45 am, "ezulo...@gmail.com" wrote: > So i am very new to django and have a little python experience. im > using webfraction to host my application and followed

Re: django newbie, having problems with my first app. maybe in the urls.py?

2009-08-10 Thread gumbah
Whoops... i see now that it never even finds your urs.py so it must be something wrong with the configuration on webfaction... you have to look into your /webapps/PROJECT_NAME/apache/conf/ httpd.conf file to see if everything is setup correctly. On Aug 10, 12:01 pm, gumbah wrote: > I read "from

Re: django newbie, having problems with my first app. maybe in the urls.py?

2009-08-11 Thread ezulo...@gmail.com
AHA, both of those were the problem :) got my hello world working, im sure i'll have many more questions! Thanks!!! On Aug 10, 5:06 am, gumbah wrote: > Whoops... i see now that it never even finds your urs.py so it must be > something wrong with the configuration on webfaction... > > you have