Re: Newbie question: first project can't connect to MySQL

2012-10-05 Thread Mohamad Efazati
Hi afshin localhost is kind of pointer to 127.0.0.1, maybe in /etc/hosts or other thing you overwrite it. so 127.0.0.1 is source and always work. 2012/10/4 Afshin Mehrabani > Hey Kevin, > > Thanks for your correct reply, I had this problem also but after changing > host

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Amirouche
> The job description is to have a dashboard full of information, It might be an OK solution to use the admin changelist (list feature of the admin) and render graphics using admin actions with an intermediate

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Luke Hovington
I will clarify a bit better on what I have been tasked to do. The job description is to have a dashboard full of information, this information could be coming from external sites or our own sensors. So with this data (yet to be decided) it could be graphed or show in table format for example.

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Amirouche
On Friday, October 5, 2012 7:47:01 AM UTC+2, Luke Hovington wrote: > > After lots of talk on I'm going to start using Django a project turned up > that allowed me to start learning how this all works. > > So far I have managed (Via tutorials) to get everything setup and running > nicely, > I

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Joel Goldstick
On Fri, Oct 5, 2012 at 1:47 AM, Luke Hovington wrote: > After lots of talk on I'm going to start using Django a project turned up > that allowed me to start learning how this all works. > > So far I have managed (Via tutorials) to get everything setup and running > nicely, > I

Newbie Looking for Starter Plugin

2012-10-05 Thread Luke Hovington
After lots of talk on I'm going to start using Django a project turned up that allowed me to start learning how this all works. So far I have managed (Via tutorials) to get everything setup and running nicely, I have also installed admin_tools which brings me to my question. Is there any

Re: Newbie question: first project can't connect to MySQL

2012-10-04 Thread Afshin Mehrabani
Hey Kevin, Thanks for your correct reply, I had this problem also but after changing host from "localhost" to "127.0.0.1" problem solved, But why? what's the different between 'localhost' and '127.0.0.1'? On Wednesday, February 4, 2009 9:15:32 PM UTC+3:30, Kevin Audleman wrote: > > I found

Re: Newbie question - setting a model form foriegn key

2012-10-02 Thread Laxmikant Gurnalkar
Hi, I think yes, Otherwise database will raise an integrity error, like Foreign key violates the not null constraint. *--Laxmikant* *G.* On Tue, Oct 2, 2012 at 12:51 PM, Keir Lawson wrote: > Thanks for your reply :-) > > So there's no way to use a model form to

Re: Newbie question - setting a model form foriegn key

2012-10-02 Thread Keir Lawson
Thanks for your reply :-) So there's no way to use a model form to proccess the quest and manually set just the FK of it? Keir On Tuesday, October 2, 2012 6:18:21 AM UTC+1, Laxmikant Gurnalkar wrote: > > Sorry, see again!! > > def payments_view(request, contact_id): > payment = Payment() >

Re: Newbie question - setting a model form foriegn key

2012-10-01 Thread Laxmikant Gurnalkar
Sorry, see again!! def payments_view(request, contact_id): payment = Payment() contact = contact.objects.filter(id=contact_id) if contact: payment.contact = contact[0] payment.save() I dont think you are looking for this kind of thing : cheers On Tue, Oct 2, 2012

Re: Newbie question - setting a model form foriegn key

2012-10-01 Thread Laxmikant Gurnalkar
def payments_view(request, contact_id): payment = Payment() payment.contact = contact[0] rctx = RequestContext(request,{ > 'contact': contact, 'payments': payments, 'form' : PaymentForm() > }) > return render_to_response('CRMSite/contact_payments.html',rctx) > On

Newbie question - setting a model form foriegn key

2012-10-01 Thread Keir Lawson
Sorry if this is a dumb question, just picking up Django. I've set up a payments form, to create payments associated with a contact (see payments model) however I'm having trouble figuring out how to save the payment with the relevant contact associated, as the contact isnt selected as part of

Re: Django newbie with issues

2012-09-18 Thread Morrti
Hi, Thought I'd update you all and bring this thread to a close. The issue was down to a typo on my part. This was corrected and symlink recreated, things seem to be ok now. Thanks for the help/advice. Thanx, Tim On Saturday, September 15, 2012 12:48:09 PM UTC+1, Karen Tracey wrote: > > On

Re: Django newbie with issues

2012-09-18 Thread Morrti
Hi, Thought I'd update you all and bring this thread to a close. The issue was down to a typo on my part. This was correct and symlink recreated, things seem to be ok now. Thanks for the help/advice. Thanx, Tim On Saturday, September 15, 2012 12:48:09 PM UTC+1, Karen Tracey wrote: > > On

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread Helly
wow I'm really glad I embarrassed myself on the whole internet. Thanks for answering with zero condescension. I am going to try to install this today. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread hevok
You need the PostgreSQL database adapter for Python: pip install psycopg2 or easy_install psycopg2 Cheers, Hevok On Sunday, September 16, 2012 4:28:12 AM UTC+2, Helly wrote: > > Hello all, > > I've been trying to set up Django for quite some time now. I'm on Mac OS X > Lion 10.7.4. As to my

Re: Newbie Project Setup and Terminology Questions

2012-09-16 Thread Matt Woodward
Thanks to all for the examples and insight! Very helpful. Matt -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/sITNuGB_k54J. To post to this group, send

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread jyria
Do you have psycopg2 installed? If you have pip then "pip install psycopg2" I would suggest using python virtualenv for django development. Makes life easier. On Sunday, September 16, 2012 5:28:12 AM UTC+3, Helly wrote: > > Hello all, > > I've been trying to set up Django for quite some time

Newbie, trying [read: failing] to set up Django

2012-09-15 Thread Helly
Hello all, I've been trying to set up Django for quite some time now. I'm on Mac OS X Lion 10.7.4. As to my level of expertise, let's just say I'm pretty new to...computers. I guess I figured I'd just stumble around until it worked. How hard could it be right? Wrong. It seems like you all

Re: Django newbie with issues

2012-09-15 Thread Karen Tracey
On Wed, Sep 12, 2012 at 5:46 AM, Morrti wrote: > Thanks for your comments on version numbers, but moving to 1.4 isn't a > quick option for me/us so I'm stuck on 1.1 for a while. > > Trying to run the app and instead of getting the "welcome" page I get the > following,

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Thomas Lockhart
think of" means. They are two lines, and placed near the top should have worked for you. I'll send you my manage.py directly. - Tom Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: I'm a newbie following the tutorial. In this

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Bob Aalsma
Well, I have tried your suggestion in all places I could think of and none of those helped: the createsuperuser kept returning the same error message. I posted this as a reply some 24 hours ago. Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: > > I'm a

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Thomas Lockhart
volgende: I'm a newbie following the tutorial. In this, creating a superuser is described, using manage.py createsuperuser --username=joe --email=j...@example.com <mailto:j...@example.com> Using this leads to an error, which I could match to the closed ticket #16017.

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Tom Evans
On Fri, Sep 14, 2012 at 10:26 AM, Bob Aalsma wrote: > macpro1:~ bobaalsma$ locale > LANG= > LC_COLLATE="C" > LC_CTYPE="UTF-8" > LC_MESSAGES="C" > LC_MONETARY="C" > LC_NUMERIC="C" > LC_TIME="C" > LC_ALL= > macpro1:~ bobaalsma$ python -c 'import locale; print >

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Bob Aalsma
SOLVED by Tom Evans: insert unset LC_CTYPE ; export LANG="nl_NL.UTF-8" into .bash_profile Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: > > I'm a newbie following the tutorial. In this, creating a superuser is > described, using > >

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Bob Aalsma
macpro1:~ bobaalsma$ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= macpro1:~ bobaalsma$ python -c 'import locale; print locale.getdefaultlocale()' Traceback (most recent call last): File "", line 1, in File

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Tom Evans
On Fri, Sep 14, 2012 at 8:52 AM, Bob Aalsma wrote: > The command & error from createsuperuser: > macpro1:dripFeedSite bobaalsma$ python manage.py createsuperuser > … Can I ask you to try some things, just to see how your environment is setup. All of these commands

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Bob Aalsma
mmatuurontwikkeling/DripFeed/dripFeedSite', 'DJANGO_SETTINGS_MODULE': 'dripFeedSite.settings', 'COMMAND_MODE': 'unix2003'} I'm not really sure what to do here: obviously creating a superuser is not an everyday thing, so maybe an other route will suffice. On the other hand: this s

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Thomas Lockhart
I'm a newbie following the tutorial. In this, creating a superuser is described, using manage.py createsuperuser --username=joe --email=j...@example.com <mailto:j...@example.com> Using this leads to an error, which I could match to the closed ticket #16017. But I c

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Kurtis Mullins
give the > same error... > > > > > Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het > volgende: > >> I'm a newbie following the tutorial. In this, creating a superuser is >> described, using >> >> manage.py createsuperuser --usern

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Bob Aalsma
Umm, could you be more specific about how/where to put this? All the combinations and location I could think of will all still give the same error... Op donderdag 13 september 2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: > > I'm a newbie following the tutorial. In this, cr

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Bob Aalsma
2012 16:58:11 UTC+2 schreef Bob Aalsma het volgende: > > I'm a newbie following the tutorial. In this, creating a superuser is > described, using > > manage.py createsuperuser --username=joe --email=j...@example.com > > > Using this leads to an error, which I could ma

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Tom Lockhart
rse. hth - Tom > > > Op donderdag 13 september 2012 19:12:30 UTC+2 schreef creecode het volgende: > Which version of django are you using? > > On Thursday, September 13, 2012 7:58:11 AM UTC-7, Bob Aalsma wrote: > > I'm a newbie following the tutorial. In this, cre

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Bob Aalsma
Django 1.4.1 Python 2.7.3 OS X 10.7.4 Op donderdag 13 september 2012 19:12:30 UTC+2 schreef creecode het volgende: > > Which version of django are you using? > > On Thursday, September 13, 2012 7:58:11 AM UTC-7, Bob Aalsma wrote: > > I'm a newbie following the tutorial.

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread creecode
Which version of django are you using? On Thursday, September 13, 2012 7:58:11 AM UTC-7, Bob Aalsma wrote: I'm a newbie following the tutorial. In this, creating a superuser is > described, using > > manage.py createsuperuser --username=joe --email=j...@example.com > > >

newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Bob Aalsma
I'm a newbie following the tutorial. In this, creating a superuser is described, using manage.py createsuperuser --username=joe --email=j...@example.com Using this leads to an error, which I could match to the closed ticket #16017. But I couldn't find how to proceed from there. It seems

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Javier Guerra Giraldez
On Tue, Sep 11, 2012 at 4:56 PM, Matthew Woodward wrote: > Any thoughts/pointers/admonitions/etc. are greatly appreciated. what i typically do: commonly, i have several projects running, each one involves more than just one django project. maybe two django projects, more

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Tim Chase
On 09/12/12 09:56, Cal Leeming [Simplicity Media Ltd] wrote: > Be aware, the below structure works perfectly for us It might help if you include what your $PYTHONPATH is set to, so one knows which directories are expected to be available for importing. -tkc -- You received this message

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Be aware, the below structure works perfectly for us because of trial and error from years of development, it suits the particular style/nature of our projects, and it has been made standardized across the board. I wouldn't recommend using the above, instead, I would recommend looking around for

Re: Django newbie with issues

2012-09-12 Thread Morrti
Hi, We already have django developers here and talking to them they would like to move to 1.4 but they have not had any meaningful discussions with all the interested parties to know when this is likely to be. I'll pass your advice back to them and see what happens though knowing the pace

module import failed - Newbie special -

2012-09-12 Thread Olivier BATARD
Hi, I'm trying to learn django with the book "learning website development with django" but I'm stucked where importing module from my app : - I have a project named django_bookmarks - Inside I've created an app with the django-admin command : python manage.py startapp bookmarks - so I've

Re: Django newbie with issues

2012-09-12 Thread Paul Backhouse
On Wed, 2012-09-12 at 02:46 -0700, Morrti wrote: > moving to 1.4 isn't a quick option for me/us so I'm stuck on 1.1 for a > while. Why is this? If you're new to Django you should dive in at the latest version. If your company has existing projects that are dependent on 1.1, then why not create a

Re: Django newbie with issues

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
ry old indeed. >> >> I have seen compatibility issues before when running django/py apps on a >> mac, but can't say I've ever ran into this before. >> >> Could you upgrade to the latest (1.4.1) and see if you still experience >> the same issue? >> >&

Re: Django newbie with issues

2012-09-12 Thread Morrti
u upgrade to the latest (1.4.1) and see if you still experience > the same issue? > > Cal > > On Tue, Sep 11, 2012 at 11:03 AM, Morrti <sirr...@googlemail.com > > wrote: > >> Hi, >> >> I'm a total newbie to Django and I'm trying to follow the build y

Newbie Project Setup and Terminology Questions

2012-09-11 Thread Matthew Woodward
Hi all -- semi-new to Django but learning fast and enjoyed meeting a lot of folks at DjangoCon last week! I have some basic project setup and terminology questions I'm hoping to get some thoughts on. Basically I'm curious as to the convention about creating a project using virtualenv and then

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
+1 on virtualenv - I only just started using it about 3 months ago.. don't know how the hell I survived without it for so long! On Tue, Sep 11, 2012 at 2:59 PM, Thomas Lockhart wrote: > On 9/11/12 6:29 AM, Morrti wrote: > >> Hi, >> >> We did try things with v1.5, but

Re: Django newbie with issues

2012-09-11 Thread Thomas Lockhart
On 9/11/12 6:29 AM, Morrti wrote: Hi, We did try things with v1.5, but that also failed. Looking further it seems that my branch on git was wrong. Moving to the correct one for 1.1 has seemed to have corrected things, well we got past that issue. I'm going to continue with the tutorial now

Re: Django newbie with issues

2012-09-11 Thread Morrti
to the latest (1.4.1) and see if you still experience > the same issue? > > Cal > > On Tue, Sep 11, 2012 at 11:03 AM, Morrti <sirr...@googlemail.com > > wrote: > >> Hi, >> > > >> I'm a total newbie to Django and I'm trying

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
rom...@googlemail.com> wrote: > Hi, > > I'm a total newbie to Django and I'm trying to follow the build your first > app tutorial from the site > https://docs.djangoproject.com/en/1.1/intro/tutorial01/ but have soon run > into problems, please see below. This is as a resul

Django newbie with issues

2012-09-11 Thread Morrti
Hi, I'm a total newbie to Django and I'm trying to follow the build your first app tutorial from the site https://docs.djangoproject.com/en/1.1/intro/tutorial01/ but have soon run into problems, please see below. This is as a result of running the python manage.py runserver command

Re: newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Bob Aalsma
Ah, yes, thanks! Regards, Bob Op maandag 10 september 2012 21:31:17 UTC+2 schreef Thomas het volgende: > > On 9/10/12 11:30 AM, Bob Aalsma wrote: > > > I'm in Chapter 5 of the tutorial, configuring the database. > I think I've done everything correct to set the DATABASE_ENGINE = >

Re: newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Thomas Lockhart
On 9/10/12 11:30 AM, Bob Aalsma wrote: I'm in Chapter 5 of the tutorial, configuring the database. I think I've done everything correct to set the DATABASE_ENGINE = 'sqlite3'. Then I check the settings and see an error: ImproperlyConfigured: settings.DATABASES is improperly configured.

newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Bob Aalsma
I'm new at Django, renewing the start I made some two years ago by following the tutorial. And I'm aware there are some problems with my python, which I'm trying to solve as well. And I didn't find the answer to my question in djangoproject, this group or any other group. I'm in Chapter 5 of

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-28 Thread Pratik Mandrekar
Yes 0.0.0.0:8000 is correct. You would need to disable firewall for that port. In Ubuntu I used the Uncomplicated Firewall utility. You can try something like http://download.cnet.com/Windows-7-Firewall-Control/3000-10435_4-10618117.html for Windows 7 On Friday, July 27, 2012 6:42:18 PM

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Bill Freeman
The 0.0.0.0:8000 argument to runserver is the right way to do this. (Apparently 0:8000 us a legal shortcut.) But you may have a firewall on your machine which is not allowing access to port 8000. You will have to find someone (maybe you) with specific knowledge of firewall configuration on your

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Christopher Downard
Assuming both laptops are connected to the same local network (192.168.1.*) then it should be able to access the server. Are you getting a page not found or are you getting an error with the URLs? My server starts up just fine with python manage.py runserver 192.168.1.149:8020 (my lan's info).

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Miguel Lavalle
Thanks. It didn't work, though. In the development laptop I started the server with python manage.py runserver 192.168.1.116:8000 In the laptop where I am trying to access the app, I typed in the browser: 192.168.1.116:8000

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Christopher Downard
Try python manage.py runserver 192.168.1.116 where that address is your computer's address. On Jul 27, 2012 7:15 AM, "Miguel Lavalle" wrote: > Hi, > > I am new to Django. I am developing my first app on a Windows 7 laptop. I > want other people to be able to connect to this

Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Miguel Lavalle
Hi, I am new to Django. I am developing my first app on a Windows 7 laptop. I want other people to be able to connect to this app. As indicated in the documentation, I start the server with: python manage.py runserver 0.0.0.0:8000 And then I try to access my app from another laptop pointing

Re: newbie URL problem

2012-07-26 Thread Felipe Sitta
I did what you said and put an third parameter on the track view and it worked. I think it's not an good practice, because is maintaining useless data, but for now its ok, at least the listing is done :D I still have to learn to use those regular expressions, its kinda tricky =/ Anyway, thanks

Re: newbie URL problem

2012-07-26 Thread Karen Tracey
On Thu, Jul 26, 2012 at 8:32 AM, Karen Tracey wrote: > On Thu, Jul 26, 2012 at 12:20 AM, Felipe Sitta wrote: > >> >> I messed up with the code and figured that the problem is with the urls >> patterns. Here are the codes: >> >> the url patterns from

Re: newbie URL problem

2012-07-26 Thread Karen Tracey
On Thu, Jul 26, 2012 at 12:20 AM, Felipe Sitta wrote: > I'm new to programming and I'm designing an demo website to get used to > django, web and database stuff. It's about racetracks. > > The structure is the following: > There's a menu with a link "Track List", it leads

Re: newbie URL problem

2012-07-26 Thread Daniel Roseman
On Thursday, 26 July 2012 05:20:34 UTC+1, Felipe Sitta wrote: > > I'm new to programming and I'm designing an demo website to get used to > django, web and database stuff. It's about racetracks. > > The structure is the following: > There's a menu with a link "Track List", it leads to a page with

newbie URL problem

2012-07-26 Thread Felipe Sitta
I'm new to programming and I'm designing an demo website to get used to django, web and database stuff. It's about racetracks. The structure is the following: There's a menu with a link "Track List", it leads to a page with an country list each one as a link. Each link leads to an list with

Re: Newbie -- issue with psycoppg2

2012-07-21 Thread Thomas Lockhart
On 12-07-21 3:57 AM, Quincy Kwende wrote: create a database using PostgreSQL Try googling "create a database using PostgreSQL" The first hit is the chapter you want in the Postgres docs. hth - Tom -- You received this message because you are subscribed to the Google Groups

Newbie -- issue with psycoppg2

2012-07-21 Thread Quincy Kwende
Hello, I get the bug on the attached file. I don't know how to create a database using PostgreSQL. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Newbie form question

2012-07-02 Thread Daniel Roseman
On Sunday, 1 July 2012 23:25:32 UTC+1, Russ Abbott wrote: > > As a Django newbie I apologize if this is a trivial question. > > I'd like to use a form field as an element in a generated page but not as > part of a form. In particular, I'm generating a table, some of whose >

Re: Newbie form question

2012-07-02 Thread Andrea Mucci
hi the approach is correct, i think the problem is with the Field name have you used choices = ... ? if yes cloud you change the name of this field? cheers, 2012/7/2 Russ Abbott <russ.abb...@gmail.com> > As a Django newbie I apologize if this is a trivial question. > >

Newbie form question

2012-07-01 Thread Russ Abbott
As a Django newbie I apologize if this is a trivial question. I'd like to use a form field as an element in a generated page but not as part of a form. In particular, I'm generating a table, some of whose elements are text and others of which I want to be drop-down lists. I thought I might

Re: Django newbie

2012-06-20 Thread Corey MacDonald
Its most certainly an issue with your env variables. Double check, reboot. If you still have problems please post the string from your path. On Wed, Jun 20, 2012 at 2:46 AM, lovetoprogram wrote: > I am trying django using the djangobook tutorial. I have Python >

Re: Django newbie

2012-06-20 Thread Jirka Vejrazka
> experience. However when I'm trying to execute following command in > command prompt (Windows 7), I get this error. > File "", line 1 > django-admin.py startproject mysite >                                        ^ > SyntaxError: Invalid synatx Hi there, this is a typical Python

Django newbie

2012-06-20 Thread lovetoprogram
I am trying django using the djangobook tutorial. I have Python experience. However when I'm trying to execute following command in command prompt (Windows 7), I get this error. File "", line 1 django-admin.py startproject mysite ^ SyntaxError: Invalid

agon_ratings newbie help

2012-05-30 Thread Henri
I'm new to django and AJAX-level web development, so pardon my non-orthodox lingo :) Any ideas what I might be doing wrong if the AJAX form for rating in agon_ratings added per instructions ( http://agon-ratings.readthedocs.org/en/latest/usage.html) doesn't seem to really do much? I get the

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Daniel Roseman
On Thursday, 17 May 2012 19:39:53 UTC+1, Bob Loblaw wrote: > > I was cruising along fine, but am stuck now... Any help would be > greatly appreciated > > OS: Mac OS X Version 10.6.8 > Python: 2.6.1 > Django: 1.4 > > Issue: system throwing an error message during template rendering when >

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Marcin Tustin
This is your problem: {% else %} Everything between {% and %} is interpreted as template-syntax code. On Thu, May 17, 2012 at 7:39 PM, Bob Loblaw wrote: > I was cruising along fine, but am stuck now... Any help would be > greatly appreciated > > OS: Mac OS X Version

Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Bob Loblaw
I was cruising along fine, but am stuck now... Any help would be greatly appreciated OS: Mac OS X Version 10.6.8 Python: 2.6.1 Django: 1.4 Issue: system throwing an error message during template rendering when trying to implement Django template system. So I guess I must have a config snag

Re: template logic vs AJAX newbie seeks advice

2012-05-05 Thread Reinout van Rees
On 05-05-12 22:34, M Hussain wrote: I think I'm in the same situation of considering Django for developing a webapp or knowing Django features to develop UI. Is that possible to develop UI like a desktop application, features like, tab, Buttons, Checkboxes, lists, ploting graphs based on the

Re: template logic vs AJAX newbie seeks advice

2012-05-05 Thread M Hussain
I think I'm in the same situation of considering Django for developing a webapp or knowing Django features to develop UI. Is that possible to develop UI like a desktop application, features like, tab, Buttons, Checkboxes, lists, ploting graphs based on the data read from DB. Please do suggest in

Re: template logic vs AJAX newbie seeks advice

2012-05-05 Thread Reinout van Rees
On 04-05-12 19:15, Etienne B. Roesch wrote: Thanks for the link to your post Reinout! So, have you made a decision about the way to go for your application? For the near future we're sticking with templates, but with javascript for the spots where we need it (we'll use backbone to clean up

Re: template logic vs AJAX newbie seeks advice

2012-05-04 Thread Etienne B. Roesch
Thanks for the link to your post Reinout! So, have you made a decision about the way to go for your application? I like the idea of using two different systems from the backend and the frontend. I am new to django (a month+), but I don't think there was ever a doubt in mind that my frontend

Re: template logic vs AJAX newbie seeks advice

2012-05-04 Thread Reinout van Rees
On 04-05-12 15:17, Sells, Fred wrote: Up to now, I’ve been using Flex for my client side and having Django return xml for the last 2 years. With Adobe’s policy changes regarding Flex support, I need to shift future efforts to HTML5. I’m seeking some general advice from the group on basic

Re: template logic vs AJAX newbie seeks advice

2012-05-04 Thread Bill Freeman
On Fri, May 4, 2012 at 9:17 AM, Sells, Fred wrote: > Up to now, I’ve been using Flex for my client side and having Django return > xml for the last 2 years.  With Adobe’s policy changes regarding Flex > support, I need to shift future efforts to HTML5.  I’m seeking

template logic vs AJAX newbie seeks advice

2012-05-04 Thread Sells, Fred
Up to now, I've been using Flex for my client side and having Django return xml for the last 2 years. With Adobe's policy changes regarding Flex support, I need to shift future efforts to HTML5. I'm seeking some general advice from the group on basic technology/techniques. My specific question

Re: Newbie Django queryset question

2012-03-15 Thread Shawn Milochik
On 03/15/2012 11:22 PM, Murilo Vicentini wrote: Uhmmm, thank you a lot. That was what I was looking for! Sorry for wasting your time. One last question, does this double-underscore notation work at my html template? Because after filtering I will want to display the information of the

Re: Newbie Django queryset question

2012-03-15 Thread Murilo Vicentini
Uhmmm, thank you a lot. That was what I was looking for! Sorry for wasting your time. One last question, does this double-underscore notation work at my html template? Because after filtering I will want to display the information of the different models at one row of my table. On Friday,

Re: Newbie Django queryset question

2012-03-15 Thread Shawn Milochik
You can certainly use Q objects to query across models, just as you can in a normal QuerySet, by using the double-underscore notation. https://docs.djangoproject.com/en/1.3/topics/db/queries/#lookups-that-span-relationships -- You received this message because you are subscribed to the Google

Re: Newbie Django queryset question

2012-03-15 Thread Murilo Vicentini
But if I got it correctly I can use Q objects to make complex filters but they only apply to one model, what I need is a combination of the models. And since the search can return more than one (or even zero) objects I can't use get() to see the related objects. On Thursday, March 15, 2012

Re: Newbie Django queryset question

2012-03-15 Thread Shawn Milochik
If you don't know which fields your users will be searching on in advance, you'll have to create Q objects and dynamically build your query in your view. https://docs.djangoproject.com/en/1.3/topics/db/queries/#complex-lookups-with-q-objects -- You received this message because you are

Newbie Django queryset question

2012-03-15 Thread Murilo Vicentini
Hey guys, sorry if this is a newbie question, but I'm new at django and I'm having a real hard time trying to figure out how to solve this. So I have this model. class Run(models.Model): speccpus = models.ForeignKey('Speccpu') hosts = models.ForeignKey('Host') Task

Re: newbie django hosting question

2012-03-14 Thread NENAD CIKIC
I have gone with linode, and i setup the vps as i did with my virtualbox. No surprises and i am alive now. On 13 ožu, 16:11, Bill Freeman wrote: > I'm not sure that "django hosting" nails anything down.  It could mean > whatever the provider wants it to mean, from "we won't

Re: newbie django hosting question

2012-03-14 Thread Scott Macri
I decided to go with webfraction based on your recommendation. I just setup my account and will let you know how it goes. Thanks. :) On Tue, Mar 13, 2012 at 11:27 AM, NENAD CIKIC wrote: > OK, thanks. > > On 13 ožu, 16:11, Bill Freeman wrote: >> I'm

Re: newbie django hosting question

2012-03-13 Thread NENAD CIKIC
OK, thanks. On 13 ožu, 16:11, Bill Freeman wrote: > I'm not sure that "django hosting" nails anything down.  It could mean > whatever the provider wants it to mean, from "we won't kick you off > for using a non-Microsoft tool" to "we understand django and will help > you

Re: newbie django hosting question

2012-03-13 Thread Bill Freeman
I'm not sure that "django hosting" nails anything down. It could mean whatever the provider wants it to mean, from "we won't kick you off for using a non-Microsoft tool" to "we understand django and will help you deploy, debug, and maintian it". One significant variation from VPS that you should

newbie django hosting question

2012-03-12 Thread NENAD CIKIC
I now need to put on web the small project i have developed. To test and to skill me on linux, I have created virtualbox ubuntu VM and deployed the project and used nginx to serve it (all from scratch). May someone provide me clarification on the following: - what is the difference between

RE: Dumb newbie question

2012-02-17 Thread Bob Carlson
Of Tom Evans Sent: Friday, February 17, 2012 10:12 To: django-users@googlegroups.com Subject: Re: Dumb newbie question On Fri, Feb 17, 2012 at 4:15 PM, Babatunde Akinyanmi <tundeba...@gmail.com> wrote: > I'm also a noob. If I had code that would use the same models then I > would kee

Re: Dumb newbie question

2012-02-17 Thread Tom Evans
On Fri, Feb 17, 2012 at 4:15 PM, Babatunde Akinyanmi wrote: > I'm also a noob. If I had code that would use the same models then I > would keep everything inside one app but divide them into modules > I would say that is slightly sub optimal. There is nothing wrong with an

Re: Dumb newbie question

2012-02-17 Thread Babatunde Akinyanmi
I'm also a noob. If I had code that would use the same models then I would keep everything inside one app but divide them into modules On 2/17/12, Bob Carlson wrote: > I'm well into beginning building my actual app after going through the > tutorial, > but I have no feel yet

Re: Dumb newbie question

2012-02-17 Thread Babatunde Akinyanmi
I'm also a noob. If I had code that would use the same models then I would keep everything inside one app but divide them into modules On 2/17/12, Bob Carlson wrote: > I'm well into beginning building my actual app after going through the > tutorial, > but I have no feel yet

Re: Dumb newbie question

2012-02-17 Thread Furbee
Yes, they just need to import the models from the module that they need. Be aware, of circular imports, though. That is when one module imports from another which also imports from the first one. Check the imports at the top to make sure the module from which you are importing classes, modles,

Dumb newbie question

2012-02-17 Thread Bob Carlson
I'm well into beginning building my actual app after going through the tutorial, but I have no feel yet for the answer to this question. Can apps share a set of models? My application neatly divides into three pieces, but all the pieces share the same data. Should these be 3 apps or 1? Can

<    1   2   3   4   5   6   7   8   9   10   >