Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread goreano
HEYY K1G, You've got it this is a typical case of trees not letting me see the forest Thanks a lot for your eagles eye ;-) El viernes, 9 de agosto de 2013 00:56:11 UTC+2, ke1g escribió: > > > > > On Thu, Aug 8, 2013 at 4:18 PM, goreano >wrote: > >> Here is the full error trace >

Re: Friendship model

2013-08-08 Thread Andy McKay
On Thu, Aug 8, 2013 at 12:41 PM, Robin Lery wrote: > How do i create a Friendship model? Please guide me. > You would need to provide more detail to get much help. The tutorial covers how to make models: https://docs.djangoproject.com/en/dev/intro/tutorial01/ -- You received this message beca

Re: connecting to MS SQL server in addition to default MySQL

2013-08-08 Thread Larry Martell
I just have read-only access to the MS SQL server database. I can't install anything on the Windows box. So all I can do is execute sql queries against it. On Thu, Aug 8, 2013 at 9:19 AM, Michael Manfre wrote: > Any particular reason you want to completely avoid the ORM? My main project > that u

Re: NuoDB released 1.2 along with a Django Driver

2013-08-08 Thread Russell Keith-Magee
On Thu, Aug 8, 2013 at 7:51 AM, Russell Keith-Magee wrote: > > This is deeply concerning -- from my initial inspection of the code, it's > pretty clear that the NuoDB backend has been substantially copied from > Django's postgresql_psycopg2 backend. > > The code in the Django postgresql_psycogpy2

Re: Why can't a Model have the same name as a View?

2013-08-08 Thread Mike Dewhirst
On 9/08/2013 4:13am, JJ Zolper wrote: Hello everyone, I've only been working with Python and Django for a couple of years now and whenever I can I like to learn more about certain rationalizations for certain decisions made within each of them. In Django we define a Python class with a name to

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread Bill Freeman
On Thu, Aug 8, 2013 at 4:18 PM, goreano wrote: > Here is the full error trace > > ... > > Traceback: > File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" > in get_response > 103. resolver_match = > resolver.resolve(request.path_info) > File "/usr/

Re: Why can't a Model have the same name as a View?

2013-08-08 Thread Bill Freeman
Python variables don't have types. They're just references. You can call models and views by the same name. But a bare name can only have one value in a given python scope. Thus, if in your views.py you do: from models import Foo you have set the view module's global scope's variable 'Foo

Re: Exception Value: Could not parse the remainder: '().order_by('-votes')' from 'poll.altword_set.all().order_by('-votes')'

2013-08-08 Thread Pepsodent Cola
I'm still a bit confused how to make my ordering work, I can't find examples that order things the way I want :( 1.) My webpage now look like this after playing with the Viewpage. *localhost:8000/navi_polls/madara/1/* Page * Page - Leafy 2 = 18 votes * Page - Leafy 3 = 50 votes * Paper - Le

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread goreano
Thanks, thas was a good try, im sure it is path related, THX VM El jueves, 8 de agosto de 2013 15:26:42 UTC+2, Mike Dewhirst escribió: > > Sorry - I didn't look past your settings ROOT_URLCONF > > Nor did I see that others have responded. Please disregard mine. > > Cheers > > Mike > > On 8/08/

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread goreano
Well, what typo is it El jueves, 8 de agosto de 2013 15:15:35 UTC+2, pa xapy escribió: > > you have a typo in the urls.py -- 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

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread goreano
Here is the full error trace Environment: Request Method: GET Request URL: http://localhost:8000/admin/ Django Version: 1.5 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contri

Friendship model

2013-08-08 Thread Robin Lery
Hi, How do i create a Friendship model? Please guide me. Thank you. -- 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

Testing with legacy data

2013-08-08 Thread Dan Gentry
I'm not a fan of testing with actual data, except maybe as a final run to make sure no existing data breaks something or for stress testing with large amounts of data. Your legacy DB will not cover all of the possible cases that need to be tested in your code. Instead, write quality unit tests

Why can't a Model have the same name as a View?

2013-08-08 Thread JJ Zolper
Hello everyone, I've only been working with Python and Django for a couple of years now and whenever I can I like to learn more about certain rationalizations for certain decisions made within each of them. In Django we define a Python class with a name to represent our model (I think it's a p

Parents can't enroll children in courses

2013-08-08 Thread Chris Ryan
I submitted this question in much, much more detail a couple of weeks ago but got no response. I'm thinking that maybe I gave you too much information. So, I thought I'd try just one more time. I have a table of family members. Some of them are students. These students are enrolled in one or mo

Re: connecting to MS SQL server in addition to default MySQL

2013-08-08 Thread Michael Manfre
Any particular reason you want to completely avoid the ORM? My main project that uses django-mssql started off with a lot of raw queries (including stored procedure calls) to work with the legacy business database. It was a maintenance headache and one of the main reasons I added support to dja

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread Hamdi Gdoura
hello , you forgot to add the library in urls.py *from django.conf.urls import patterns, include, url* Le jeudi 8 août 2013 08:53:14 UTC+1, goreano a écrit : > > Hi, > > I'm a newbie diving into django I've found a problem I've been hitting my > head against for the last 2 days. > > I think it is

Re: How to use dumpdata?

2013-08-08 Thread frocco
I found out dumpdata was not working correctly because of an app installed: django-compaign. I commented it out. On Thursday, August 8, 2013 9:27:49 AM UTC-4, frocco wrote: > > Hello, > > I am trying to use > python manage.py dumpdata > myfile.json > > It is only working if I specify each app. >

How to use dumpdata?

2013-08-08 Thread frocco
Hello, I am trying to use python manage.py dumpdata > myfile.json It is only working if I specify each app. python dumpdata myapp > myfile.json Is there any wany to dump all apps into one file? Thanks -- You received this message because you are subscribed to the Google Groups "Django users

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread Mike Dewhirst
Sorry - I didn't look past your settings ROOT_URLCONF Nor did I see that others have responded. Please disregard mine. Cheers Mike On 8/08/2013 11:20pm, Mike Dewhirst wrote: On 8/08/2013 5:53pm, goreano wrote: Hi, I'm a newbie diving into django I've found a problem I've been hitting my hea

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread Mike Dewhirst
On 8/08/2013 5:53pm, goreano wrote: Hi, I'm a newbie diving into django I've found a problem I've been hitting my head against for the last 2 days. I think it is a path issue, actually I get the same error as i try to open any URL on localhost:8000 Can you please give me a hint... I have to i

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread pa xapy
you have a typo in the urls.py -- 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 post to this group, send email to dj

Re: problem with deploying django using mod wsgi

2013-08-08 Thread sah
I have this error in the error_log file : [error] [client 10.10.8.41] File does not exist: /var/www/html/search, referer: http://tarinformatics03/mice/search_mice/ search is one of my view function why is it looking for it in the html directory ?? On Wednesday, August 7, 2013 5:25:01 PM UTC-

Re: Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread Bill Freeman
Isn't there a stacktrace that goes with that error message? On Thu, Aug 8, 2013 at 3:53 AM, goreano wrote: > Hi, > > I'm a newbie diving into django I've found a problem I've been hitting my > head against for the last 2 days. > > I think it is a path issue, actually I get the same error as i t

Exception Value: No module named url -- on django poll tutorial

2013-08-08 Thread goreano
Hi, I'm a newbie diving into django I've found a problem I've been hitting my head against for the last 2 days. I think it is a path issue, actually I get the same error as i try to open any URL on localhost:8000 Can you please give me a hint... I have to improve my path definition skills bu