Re: Tutorial
Hi and thanks for the response here is the code minus the line numbers -- copied from vim, all my tabs are right and I had the right underscores. Please let me know if you see something. thanks again --jerry class Poll(models.Model): 8 question = models.CharField(max_length=200) 9 pub_date = models.DateTimeField('date published') 10 11 class Choice(models.Model): 12 poll = models.ForeignKey(Poll) 13 choice = models.CharField(max_length=200) 14 votes = models.IntegerField() 15 16 class Poll(models.Model): 17 def __unicode__(self): 18 return self.question 19 def was_published_recently(self): 20 return self.pub_date >= timezone.now() - datetime.timedelta(days=1) 21 22 class Choice(models.Model): 23 def __unicode__(self): 24 return self.choice On Fri, Apr 6, 2012 at 1:54 PM, Jonathan Baker wrote: > Jerry, > > You'll want to be sure your method is defined as: > > def __unicode__(self): > return self.name # I'm using 'name' as an example field > > with double underscores on both sides of 'unicode' instead of just in > front of it. > > Hope this helps, > Jonathan > > On Fri, Apr 6, 2012 at 12:13 PM, jk121960 wrote: > >> Hi, I am going through the tutorial, I am experienced programmer and I >> am learning django. Every thing was fine till the portion where you >> add the __unicode() methods to the classes. When I execute the >> Poll.objects.all() ant the command line it doesn't look any >> different."[]" just like the first python console >> example. I tried to run syncdb thinking this was what was missing but >> it didn't help. It stated that it >> "Creating tables ... >> Installing custom SQL ... >> Installing indexes ... >> Installed 0 object(s) from 0 fixture(s)" >> >> like before but no change to the output in python. Can someone suggest >> something so that I can move on from this part, I worked with this >> some time back but was unable to utilize it. I am attempting to change >> that now, ao I was going back through the lessons. >> >> >> thanks and any help is appreciated >> >> --jerry >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Jonathan D. Baker > Web Developer > http://jonathandbaker.com > 303.257.4144 > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial
OK makes a complete sense and worked the first time thanks very much. --jerry On Fri, Apr 6, 2012 at 4:42 PM, Jonathan Baker wrote: > You redeclaring your Model classes, and you don't need to. By doing so, > the 'self' inside your __unicode__ function refers to a property that isn't > defined (since you redeclared the original class that had the property). > Here is what the model should look like: http://codepad.org/P21ZNkZY > > On Fri, Apr 6, 2012 at 3:32 PM, Gerald Klein wrote: > >> Hi and thanks for the response here is the code minus the line numbers -- >> copied from vim, all my tabs are right and I had the right underscores. >> >> >> Please let me know if you see something. >> >> thanks again >> >> --jerry >> >> class Poll(models.Model): >> 8 question = models.CharField(max_length=200) >> 9 pub_date = models.DateTimeField('date published') >> 10 >> 11 class Choice(models.Model): >> 12 poll = models.ForeignKey(Poll) >> 13 choice = models.CharField(max_length=200) >> 14 votes = models.IntegerField() >> 15 >> 16 class Poll(models.Model): >> 17 def __unicode__(self): >> 18 return self.question >> 19 def was_published_recently(self): >> 20 return self.pub_date >= timezone.now() - >> datetime.timedelta(days=1) >> 21 >> 22 class Choice(models.Model): >> 23 def __unicode__(self): >> 24 return self.choice >> >> On Fri, Apr 6, 2012 at 1:54 PM, Jonathan Baker < >> jonathandavidba...@gmail.com> wrote: >> >>> Jerry, >>> >>> You'll want to be sure your method is defined as: >>> >>> def __unicode__(self): >>> return self.name # I'm using 'name' as an example field >>> >>> with double underscores on both sides of 'unicode' instead of just in >>> front of it. >>> >>> Hope this helps, >>> Jonathan >>> >>> On Fri, Apr 6, 2012 at 12:13 PM, jk121960 wrote: >>> >>>> Hi, I am going through the tutorial, I am experienced programmer and I >>>> am learning django. Every thing was fine till the portion where you >>>> add the __unicode() methods to the classes. When I execute the >>>> Poll.objects.all() ant the command line it doesn't look any >>>> different."[]" just like the first python console >>>> example. I tried to run syncdb thinking this was what was missing but >>>> it didn't help. It stated that it >>>> "Creating tables ... >>>> Installing custom SQL ... >>>> Installing indexes ... >>>> Installed 0 object(s) from 0 fixture(s)" >>>> >>>> like before but no change to the output in python. Can someone suggest >>>> something so that I can move on from this part, I worked with this >>>> some time back but was unable to utilize it. I am attempting to change >>>> that now, ao I was going back through the lessons. >>>> >>>> >>>> thanks and any help is appreciated >>>> >>>> --jerry >>>> >>>> -- >>>> 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 >>>> django-users+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/django-users?hl=en. >>>> >>>> >>> >>> >>> -- >>> Jonathan D. Baker >>> Web Developer >>> http://jonathandbaker.com >>> 303.257.4144 >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux
Re: Tutorial question regarding def _unicode_
Have you resynced? On Wed, Apr 11, 2012 at 12:30 PM, Brandy wrote: > I am working through the tutorial and have already added the def > _unicode_ statements to my code. However, when running > Poll.objects.all(), I still get this output: [] > > Here is the code: > > from django.db import models > > class Poll(models.Model): >question = models.CharField(max_length=200) >pub_date = models.DateTimeField('date published') >def _unicode_(self): >return self.question > # def was_published_recently(self): > # return self.pub_date >= timezone.now() - > #datetime.timedelta(days=1) > > class Choice(models.Model): >poll = models.ForeignKey(Poll) >choice = models.CharField(max_length=200) >votes = models.IntegerField() >def _unicode_(self): >return self.choice > > Thank you for any help! > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: [JOB] Urgent - PHP/Python Developer needed
Hi, I have over 20 years in the software business, I have worked for the big 6 back in the day of the dotcom crash. I am in the states so schedule is not a problem. I am looking for steady work, I am always available I don't do any onsite work. This spot is a perfect fit. The essentials are a slam dunk and I have more then a working knowledge of most of the rest. Please look over my resume and for more information please visit my web site http://www.geraldklein.com. I can be contacted at the information below. Thank you for your kind consideration. Gerald Klein On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Further update on this - budget has changed so, we can now offer a higher > rate and a part time alternative. > > * 1500$/month for 70 hours (20$/hour) > * 2000$/month for 100 hours (20$/hour) > > Thanks > > Cal > > On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Hi all, >> >> Another urgent position has come up in our company, applicant needs to >> have some experience with using Django but must also be comfortable with >> PHP (our clients are a 50/50 split between PHP and Django). >> >> -- >> >> Simplicity Media Ltd are an established UK company providing bespoke IT >> solutions for a variety of clients across the globe. >> >> We are currently looking for a flexible and diverse developer to maintain >> and extend our existing PHP deployments. >> >> Our solutions are high volume (peaking at around 5000 requests/minute), >> with extremely large databases (400 million+ rows) and large content >> servers (15TB+ of media files). >> >> The successful candidate should have at least 2 years commercial >> experience, be fluent OOP, and have a general understanding of what it >> means to be a good programmer. >> >> We're looking for a real person with real emotion, not a corporate robot >> - and being a team player is absolutely critical. Our company attitude is >> firm but fair, we encourage a healthy mixture of fun/work, and we even have >> a 'NSFW' IRC channel! >> >> Essential skills: >> * PHP 5.x (OOP) >> * MySQL >> * Linux (Debian) >> * Bash (shell/ssh etc) >> >> Desired (non-essential) skills: >> * MongoDB >> * Redhat >> * Percona >> * Memcache >> * Redis >> * Python >> >> Desired (non-essential) experience: >> * CodeIgniter (PHP) >> * TubeX (PHP) >> * Django (Python) >> * JIRA (Atlassian) >> * Basecamp >> * Zendesk >> * Livechat >> >> MINIMUM CRITERIA: >> * MUST be able to work on either EST or GMT+0 timezone >> * MUST be able to work 30+ hours a week. >> * MUST be comfortable working on 18+ sites. >> * MUST be fluent in written & spoken English >> >> The position is full time, offering around $2000/month (roughly >> £1200/month) for the right candidate - price/hours are negotiable. >> >> This position MUST be filled by 15th April 2012. >> >> When applying, please also include a cover note explaining why you feel >> you would be suitable for this role. >> >> >> > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. Gerald Klein.doc Description: MS-Word document
Re: [JOB] Urgent - PHP/Python Developer needed
Hi, I apologize I didn't get your response till this morning, for whatever reason I couldn't reply to the other email. ? Anyway I thought it over and 18 sites is a lot of responsibility for that income, I must kindly decline this offer thank you for your consideration. On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Further update on this - budget has changed so, we can now offer a higher > rate and a part time alternative. > > * 1500$/month for 70 hours (20$/hour) > * 2000$/month for 100 hours (20$/hour) > > Thanks > > Cal > > On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Hi all, >> >> Another urgent position has come up in our company, applicant needs to >> have some experience with using Django but must also be comfortable with >> PHP (our clients are a 50/50 split between PHP and Django). >> >> -- >> >> Simplicity Media Ltd are an established UK company providing bespoke IT >> solutions for a variety of clients across the globe. >> >> We are currently looking for a flexible and diverse developer to maintain >> and extend our existing PHP deployments. >> >> Our solutions are high volume (peaking at around 5000 requests/minute), >> with extremely large databases (400 million+ rows) and large content >> servers (15TB+ of media files). >> >> The successful candidate should have at least 2 years commercial >> experience, be fluent OOP, and have a general understanding of what it >> means to be a good programmer. >> >> We're looking for a real person with real emotion, not a corporate robot >> - and being a team player is absolutely critical. Our company attitude is >> firm but fair, we encourage a healthy mixture of fun/work, and we even have >> a 'NSFW' IRC channel! >> >> Essential skills: >> * PHP 5.x (OOP) >> * MySQL >> * Linux (Debian) >> * Bash (shell/ssh etc) >> >> Desired (non-essential) skills: >> * MongoDB >> * Redhat >> * Percona >> * Memcache >> * Redis >> * Python >> >> Desired (non-essential) experience: >> * CodeIgniter (PHP) >> * TubeX (PHP) >> * Django (Python) >> * JIRA (Atlassian) >> * Basecamp >> * Zendesk >> * Livechat >> >> MINIMUM CRITERIA: >> * MUST be able to work on either EST or GMT+0 timezone >> * MUST be able to work 30+ hours a week. >> * MUST be comfortable working on 18+ sites. >> * MUST be fluent in written & spoken English >> >> The position is full time, offering around $2000/month (roughly >> £1200/month) for the right candidate - price/hours are negotiable. >> >> This position MUST be filled by 15th April 2012. >> >> When applying, please also include a cover note explaining why you feel >> you would be suitable for this role. >> >> >> > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: [JOB] Urgent - PHP/Python Developer needed
sql injection is defeated by methodizing sql calls and server side validation. On Fri, Apr 13, 2012 at 8:38 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > > Is this anywhere near a standard rate in UK? > @mario - imho - for a junior position getting their foot in the door, > whilst also working remotely - I think it is pretty fair. > > > I guess junior dev rates have plummeted in the last 10 years. > @marcin - You should see how much typical internships pay, it's shockingly > bad. > Also - the market is flooded with so called "professionals" that are > driving up the prices and make finding decent developers extremely > difficult. > > For example, here was a typical response to our question sheet from > someone we interviewed. > > QUESTION 5: Provide an example of how you would prevent SQL injection from > happening. > ANSWER: "I wouldn't - I would use NMap and other scanners." > > >BTW, is there any onsite work? > @wang - If you are available in the Coventry (UK), Bedfordshire (UK) or > Pittsburgh (PA, US) areas, then we might be able to offer you an on-site > position (if this is what you wanted). > > > On Thu, Apr 12, 2012 at 8:27 PM, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Further update on this - budget has changed so, we can now offer a higher >> rate and a part time alternative. >> >> * 1500$/month for 70 hours (20$/hour) >> * 2000$/month for 100 hours (20$/hour) >> >> Thanks >> >> Cal >> >> >> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < >> cal.leem...@simplicitymedialtd.co.uk> wrote: >> >>> Hi all, >>> >>> Another urgent position has come up in our company, applicant needs to >>> have some experience with using Django but must also be comfortable with >>> PHP (our clients are a 50/50 split between PHP and Django). >>> >>> -- >>> >>> Simplicity Media Ltd are an established UK company providing bespoke IT >>> solutions for a variety of clients across the globe. >>> >>> We are currently looking for a flexible and diverse developer to >>> maintain and extend our existing PHP deployments. >>> >>> Our solutions are high volume (peaking at around 5000 requests/minute), >>> with extremely large databases (400 million+ rows) and large content >>> servers (15TB+ of media files). >>> >>> The successful candidate should have at least 2 years commercial >>> experience, be fluent OOP, and have a general understanding of what it >>> means to be a good programmer. >>> >>> We're looking for a real person with real emotion, not a corporate robot >>> - and being a team player is absolutely critical. Our company attitude is >>> firm but fair, we encourage a healthy mixture of fun/work, and we even have >>> a 'NSFW' IRC channel! >>> >>> Essential skills: >>> * PHP 5.x (OOP) >>> * MySQL >>> * Linux (Debian) >>> * Bash (shell/ssh etc) >>> >>> Desired (non-essential) skills: >>> * MongoDB >>> * Redhat >>> * Percona >>> * Memcache >>> * Redis >>> * Python >>> >>> Desired (non-essential) experience: >>> * CodeIgniter (PHP) >>> * TubeX (PHP) >>> * Django (Python) >>> * JIRA (Atlassian) >>> * Basecamp >>> * Zendesk >>> * Livechat >>> >>> MINIMUM CRITERIA: >>> * MUST be able to work on either EST or GMT+0 timezone >>> * MUST be able to work 30+ hours a week. >>> * MUST be comfortable working on 18+ sites. >>> * MUST be fluent in written & spoken English >>> >>> The position is full time, offering around $2000/month (roughly >>> £1200/month) for the right candidate - price/hours are negotiable. >>> >>> This position MUST be filled by 15th April 2012. >>> >>> When applying, please also include a cover note explaining why you feel >>> you would be suitable for this role. >>> >>> >>> >> > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Building composite keys?
I understand serial by nature is unique. On Mon, Apr 16, 2012 at 9:24 AM, Roy Smith wrote: > I've got a model in django 1.4: > > class Image(Model): >serial = AutoField(primary_key=True) >version = IntegerField(default=1) > > I want (serial, version) to be unique. Is there a way to express that in > the model layer? > > --- > Roy Smith > r...@panix.com > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: AutoFields must have primary_key=True?
Auto-incrementing fields are meant to be primary keys that is their purpose. I have never tried it but a formula in the default value for an integer field to increment it might work On Mon, Apr 16, 2012 at 10:17 AM, Roy Smith wrote: > I need an integer field which generates increasing integers. But I don't > want it to be my primary key. In fact, it can't be, because I want the > ability to manually reset it to something else. The auto-increment is just > a default value. > > If I do: > > > class Image(Model): > > serial = AutoField() > > I get an error when I do syncdb or schemamigration: > > > AssertionError: AutoFields must have primary_key=True. > > Is this a bug? > > --- > Roy Smith > r...@panix.com > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Help - ImportError: No module named django.core.management
I had to use prompts with python2 because I have 3.2 installed also. On Tue, Apr 17, 2012 at 11:35 AM, Bill Freeman wrote: > Is there any chance that there is more than one python hanging around? > For instance, a root python, and a virtualenv made with > --no-site-packages (in newer virtualenv installs this is the default). > > Or try adding the following to your manage.py (just before the line in > there that is in the stacktrace): > > import sys > from pprint import pprint > pprint(sys.path) > > If this doesn't include the site-packages or dist-packages directory > where Django is installed, figure out why. (Are you playing with the > PYTHONPATH or PYTHONHOME environment variables?) > > Bill > > On 4/17/12, Michael Lewis wrote: > > Hi everyone, > > > > I've seen a lot of info regarding this error, but I can't seem to find > > anything that solves my problem. I am starting my first project - > "Writing > > your first Django app, part 1". I've downloaded Django and can see that > > it's installed by running "import django". I then move on to this step to > > run "django-admin.py startproject mysite". That runs fine and creates > > "mysite" directory. > > > > My problem is when I run "python manage.py runserver", I get this error > > "ImportError: No module named django.core.management". The error makes it > > seem like the module doesn't exist. However, when I go to my python > > interactive shell, I can run "from django.core.management import > > execute_from_command_line" and I don't get any errors. > > > > Can you help me out? > > > > -- > > Michael J. Lewis > > mjole...@gmail.com > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > > > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Tutorial
Hi, I did the tutorial everything is fine, I wanted to see how it was off the dev webserver they give you , so I hooked it up to uWSGI. The views that I defined are fine but the admin has no formatting just data. Can someone tell me what I missed. thanks in advance --jerry -- Gerald Klein DBA j...@zognet.com ** 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial
Ok thanks it gives me something to start with. thanks --jerry On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa wrote: > On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein wrote: > > Hi, I did the tutorial everything is fine, I wanted to see how it was off > > the dev webserver they give you , so I hooked it up to uWSGI. The views > that > > I defined are fine but the admin has no formatting just data. Can someone > > tell me what I missed. > > Sound like you're not properly configure the server to serve static > content. View source for the html through your browser, pick any > references to css or js files - something like > http://yoursite.com/static/admin/styles.css or > http://localhost:8000/static/admin/style.css and try to access it > directly. If you got 404 - Page Not Found then you need to configure > uWSGI to serve the static files. It maybe not a good idea to serve the > static files through uWSGI but you can figure out that later once you > understand and fix this problem. > > https://docs.djangoproject.com/en/1.3/howto/static-files/ > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Tutorial
I guess the problem I am having at this point is that the css files for admin are generated dynamically and I don't know where from as far as what the path should be that I could map it. I tried setting up the static mapping but I don't know what to point to as it's root. thanks --jerry On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa wrote: > On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein wrote: > > Hi, I did the tutorial everything is fine, I wanted to see how it was off > > the dev webserver they give you , so I hooked it up to uWSGI. The views > that > > I defined are fine but the admin has no formatting just data. Can someone > > tell me what I missed. > > Sound like you're not properly configure the server to serve static > content. View source for the html through your browser, pick any > references to css or js files - something like > http://yoursite.com/static/admin/styles.css or > http://localhost:8000/static/admin/style.css and try to access it > directly. If you got 404 - Page Not Found then you need to configure > uWSGI to serve the static files. It maybe not a good idea to serve the > static files through uWSGI but you can figure out that later once you > understand and fix this problem. > > https://docs.djangoproject.com/en/1.3/howto/static-files/ > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django nginx uWSGI
Hi, I am attempting to get nginx and uwsgi running on my local box, I followed any number of tutorials and this one had the most complete information. http://gekicstart.ca/tech-posts/nginxuwsgidjango-stack/ It is written for Debian\Ubuntu so I had to transpose a bit. I got through most of it and I got to the section on creating the daemon for uwsgi that loads a specific project. It creates a /etc/init/projectX.conf file that it loads the uwsgi specific information from. I didn't know enough to create a daemon in arch so I opted for running the command by cli. /usr/bin/uwsgi socket /root/Workspace/Eclipse/sockets/projectX.sock --chmod-socket --module wsgi_app --pythonpath /root/Workspace/Eclipse/projectX/uwsgi -p 1 I also extended the relative paths to absolute from the example code, so far so good. but when it loads the below file. when I run this it craps on the django import #!/usr/bin/python2.7 import sys import os import django.core.handlers.wsgi sys.path.append("/Eclipse/") os.environ['DJANGO_SETTINGS_MODULE'] = 'projectX.settings' application = django.core.handlers.wsgi.WSGIHandler() It can't find django, I tested by reducing the statement import django.core.handlers.wsgi section by section, in other words I tested 'import django.core.handlers', 'import django.core' etc. each time it couldn't find the reference, I know that django is loaded in python2.7/site-packages. Further I also opened up a python2.7 prompt and used the same import statement successfully. I tried changing the declaration for the python script to #!/usr/bin/python #!/usr/bin/python2 #!/usr/bin/python2.7 None has solved the problem. Does anyone have an idea why it can't see django? The python prompt sees it no problem. thanks in advance for your help. --jerry Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django nginx uWSGI
Thanks I will give that a shot. Solid advice on the build version, my machine is 3.2 and django is up to 2.7. I was wondering how to force a script to run at 2.7 because I was worried about the version clash. thanks a lot. --jerry On Sun, Apr 22, 2012 at 2:01 PM, Roberto De Ioris wrote: > > > Hi, I am attempting to get nginx and uwsgi running on my local box, I > > followed any number of tutorials and this one had the most complete > > information. > > http://gekicstart.ca/tech-posts/nginxuwsgidjango-stack/ > > > > It is written for Debian\Ubuntu so I had to transpose a bit. I got > through > > most of it and I got to the section on creating the daemon for uwsgi that > > loads a specific project. It creates a /etc/init/projectX.conf file that > > it > > loads the uwsgi specific information from. I didn't know enough to create > > a > > daemon in arch so I opted for running the command by cli. > > > > /usr/bin/uwsgi socket /root/Workspace/Eclipse/sockets/projectX.sock > > --chmod-socket --module wsgi_app --pythonpath > > /root/Workspace/Eclipse/projectX/uwsgi -p 1 > > > > I also extended the relative paths to absolute from the example code, so > > far so good. but when it loads the below file. > > > > when I run this it craps on the django import > > > > #!/usr/bin/python2.7 > > import sys > > import os > > import django.core.handlers.wsgi > > sys.path.append("/Eclipse/") > > os.environ['DJANGO_SETTINGS_MODULE'] = 'projectX.settings' > > application = django.core.handlers.wsgi.WSGIHandler() > > > > > > I suggest you to follow official docs/quickstart > > http://projects.unbit.it/uwsgi/wiki/Quickstart > > Most of the blog-posts out-there refer to very particular configs that > could > make mess in your mind. > > By the way, it looks like you have built uWSGI for a different python > version. > > From its source directory do > > make clean > python2.7 uwsgiconfig.py --build > > to be sure the correct python version is used (the first command is used > for cleaning files from the previous build) > > When uWSGi starts it print a good amount of log-lines, try to always read > (or report) them to fastly get help. > > > -- > Roberto De Ioris > http://unbit.it > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django nginx uWSGI
OK finally got back to it, I did what you said in part. The examples on the uWSGI page show how to get a django app to function but the part that they don't show is the static files config. I did do the rebuild and that did help out with part of the original problem, and I also had to add 1 more depth of folder to the folder reference for the settings file. Now I think I am almost there but now I get a bad gateway reference. So I am going to have to figure this out. I also tried it with http instead of the socket and I get the same bad gateway response. thanks for your help I knew there might be a version clash and I didn't know how to force the one version, because I could see django in the python2.7 site-packages directory. --jerry On Sun, Apr 22, 2012 at 2:01 PM, Roberto De Ioris wrote: > > > Hi, I am attempting to get nginx and uwsgi running on my local box, I > > followed any number of tutorials and this one had the most complete > > information. > > http://gekicstart.ca/tech-posts/nginxuwsgidjango-stack/ > > > > It is written for Debian\Ubuntu so I had to transpose a bit. I got > through > > most of it and I got to the section on creating the daemon for uwsgi that > > loads a specific project. It creates a /etc/init/projectX.conf file that > > it > > loads the uwsgi specific information from. I didn't know enough to create > > a > > daemon in arch so I opted for running the command by cli. > > > > /usr/bin/uwsgi socket /root/Workspace/Eclipse/sockets/projectX.sock > > --chmod-socket --module wsgi_app --pythonpath > > /root/Workspace/Eclipse/projectX/uwsgi -p 1 > > > > I also extended the relative paths to absolute from the example code, so > > far so good. but when it loads the below file. > > > > when I run this it craps on the django import > > > > #!/usr/bin/python2.7 > > import sys > > import os > > import django.core.handlers.wsgi > > sys.path.append("/Eclipse/") > > os.environ['DJANGO_SETTINGS_MODULE'] = 'projectX.settings' > > application = django.core.handlers.wsgi.WSGIHandler() > > > > > > I suggest you to follow official docs/quickstart > > http://projects.unbit.it/uwsgi/wiki/Quickstart > > Most of the blog-posts out-there refer to very particular configs that > could > make mess in your mind. > > By the way, it looks like you have built uWSGI for a different python > version. > > From its source directory do > > make clean > python2.7 uwsgiconfig.py --build > > to be sure the correct python version is used (the first command is used > for cleaning files from the previous build) > > When uWSGi starts it print a good amount of log-lines, try to always read > (or report) them to fastly get help. > > > -- > Roberto De Ioris > http://unbit.it > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Can't find module
Hi, I am having a strange problem, I have a search module named 'search' but Django states ;No module named search here is my url url(r'^search/$', 'cms.search.views.search'), url physical is 'http://localhost/search/' Any ideas? thanks --jerry -- Gerald Klein** Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Can't find module
Environment: Request Method: GET Request URL: http://localhost/search/ Django Version: 1.4 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.flatpages', 'django.contrib.admin', 'django.contrib.admindocs', 'search') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 101. request.path_info) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 300. sub_match = pattern.resolve(new_path) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 209. return ResolverMatch(self.callback, args, kwargs, self.name) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py" in callback 216. self._callback = get_callable(self._callback_str) File "/usr/lib/python2.7/site-packages/django/utils/functional.py" in wrapper 27. result = func(*args) File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py" in get_callable 105. not module_has_submodule(import_module(parentmod), submod)): File "/usr/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) Exception Type: ImportError at /search/ Exception Value: No module named search On Fri, Apr 27, 2012 at 6:46 AM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Apr 27, 3:56 am, Gerald Klein wrote: > > Hi, I am having a strange problem, I have a search module named 'search' > > but Django states ;No module named search > > full traceback please ? > > > here is my url > > > > url(r'^search/$', 'cms.search.views.search'), > > is the cms.search app in your settings.INSTALLED_APPS ? Is there any > other package or module named "cms" in you sys.path ? > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Can't find module
Sorry hit the send button http://dpaste.com/739184/ Here it is and thanks --jerry On Fri, Apr 27, 2012 at 6:46 AM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Apr 27, 3:56 am, Gerald Klein wrote: > > Hi, I am having a strange problem, I have a search module named 'search' > > but Django states ;No module named search > > full traceback please ? > > > here is my url > > > > url(r'^search/$', 'cms.search.views.search'), > > is the cms.search app in your settings.INSTALLED_APPS ? Is there any > other package or module named "cms" in you sys.path ? > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Can't find module
Ok thanks I will give that a try. --jerry On Sat, Apr 28, 2012 at 4:28 AM, Alagappan wrote: > In your installed applications list you have mentioned 'search' as an > application. But in your url pattern you are using 'cms.search'. Either use > 'cms' as your installed application or mention it as just > 'search.views.search' in your url pattern. > > I feel that should do the job. > > Thanks, > Alagappan > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Can't find module
OK thanks I changed and it worked, I appreciate your help --jerry On Sat, Apr 28, 2012 at 4:28 AM, Alagappan wrote: > In your installed applications list you have mentioned 'search' as an > application. But in your url pattern you are using 'cms.search'. Either use > 'cms' as your installed application or mention it as just > 'search.views.search' in your url pattern. > > I feel that should do the job. > > Thanks, > Alagappan > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Templates not working properly
Hi, the delimiters use are using are wrong it should be {% not (% On Mon, Apr 30, 2012 at 3:41 PM, Zaerion wrote: > I'm new to using Django and was working my way through the tutorial to get > a better feel of it. I'm stuck on part 3 of the tutorial and the section > where they show you how to use templates. When I hard-code the HttpResponse > object everything works fine, but when I try to use a template it appears > that none of the python code is being interpreted and it displays in the > web browser. I am using Debian 6, Python 2.6, and Django 1.4 and things > have been going smoothly up until this point. I'm sure I missed a setting > somewhere or have something configured incorrectly, but I can't seem to > find it. Any help is appreciated. > > -- > 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/-/IErgzK-V4BYJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Templates not working properly
No problem eveyone has one of those moments On Mon, Apr 30, 2012 at 4:07 PM, Zaerion wrote: > Yup, I caught it just after I posted it and spent about 30 minutes trying > to figure out what I did wrong. Thanks for the help! :) > > On Monday, April 30, 2012 2:05:37 PM UTC-7, Gerald Klein wrote: >> >> Hi, the delimiters use are using are wrong it should be {% not (% >> >> On Mon, Apr 30, 2012 at 3:41 PM, Zaerion wrote: >> >>> I'm new to using Django and was working my way through the tutorial to >>> get a better feel of it. I'm stuck on part 3 of the tutorial and the >>> section where they show you how to use templates. When I hard-code the >>> HttpResponse object everything works fine, but when I try to use a template >>> it appears that none of the python code is being interpreted and it >>> displays in the web browser. I am using Debian 6, Python 2.6, and Django >>> 1.4 and things have been going smoothly up until this point. I'm sure I >>> missed a setting somewhere or have something configured incorrectly, but I >>> can't seem to find it. Any help is appreciated. >>> >>> -- 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/-/IErgzK-**V4BYJ<https://groups.google.com/d/msg/django-users/-/IErgzK-V4BYJ> >>> . >>> To post to this group, send email to django-users@googlegroups.com. >>> To unsubscribe from this group, send email to django-users+unsubscribe@* >>> *googlegroups.com . >>> For more options, visit this group at http://groups.google.com/** >>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> >>> . >>> >> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux registered user #548580 >> >> >> >> -- > 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/-/XS7TMWWSqNYJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No Module Named Generic
Hi, I am having a problem, where as django doesn't find the generics module. Here is my urls.py thanks in advance. from django.conf.urls.defaults import * from django.views.generic import * from coltrane.models import Entry entry_info_dict = { 'queryset': Entry.objects.all(), 'date_field': 'pub_date', } urlpatterns = patterns('', (r'^$', 'django.generic.date_based.archive_index',entry_info_dict, 'coltrane_entry_archive_index'), (r'^(?P\d{4})/$', 'django.generic.date_based.archive_year',entry_info_dict, 'coltrane_entry_archive_year'), (r'^(?P\d{4})/(?P\w{3})/$', 'django.generic.date_based.archive_month',entry_info_dict, 'coltrane_entry_archive_month'), (r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/$', 'django.generic.date_based.archive_day',entry_info_dict,'coltrane_entry_archive_day'), (r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/(?P[-\w]+)/$', 'django.generic.date_based.object_detail',entry_info_dict,'coltrane_entry_detail'), ) Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: No Module Named Generic
Wow, and thanks I must have been staring at it far too long, I appreciate your help. A fresh set of eyes often is the answer. thanks again,. --jerry On Tue, May 1, 2012 at 9:48 AM, Xavier Ordoquy wrote: > Hi, > > You should replace django.generic in the urlspatterns string with > django.views.generic > > Regards, > Xavier Ordoquy > Linovia. > > Le 1 mai 2012 à 16:30, Gerald Klein a écrit : > > Hi, I am having a problem, where as django doesn't find the generics > module. Here is my urls.py > > thanks in advance. > > from django.conf.urls.defaults import * > > from django.views.generic import * > from coltrane.models import Entry > > > entry_info_dict = { > 'queryset': Entry.objects.all(), > 'date_field': 'pub_date', > } > > urlpatterns = patterns('', > (r'^$', 'django.generic.date_based.archive_index',entry_info_dict, > 'coltrane_entry_archive_index'), > (r'^(?P\d{4})/$', > 'django.generic.date_based.archive_year',entry_info_dict, > 'coltrane_entry_archive_year'), > (r'^(?P\d{4})/(?P\w{3})/$', > 'django.generic.date_based.archive_month',entry_info_dict, > 'coltrane_entry_archive_month'), > (r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/$', > 'django.generic.date_based.archive_day',entry_info_dict,'coltrane_entry_archive_day'), > > (r'^(?P\d{4})/(?P\w{3})/(?P\d{2})/(?P[-\w]+)/$', > 'django.generic.date_based.object_detail',entry_info_dict,'coltrane_entry_detail'), > ) > > > Gerald Klein DBA > contac...@geraldklein.com > www.geraldklein.com <http://geraldklein.com/> > j...@zognet.com > 708-599-0352 > > > Linux registered user #548580 > > > > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Port Django to Javascript
Maybe I missed an earlier post but I am always looking for new projects please explain your requirements. --jerry On Wed, May 2, 2012 at 2:15 AM, DvD wrote: > Hey, > is no one is really interested in helping in this project? > > -- > 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/-/kQ_GesNzV7wJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Short I hope explanation
Hi, I have been through a couple of tutorials including the one on the site, the one thing that the authors have in common is they seem to want to jump to the 'short cuts' to soon. I like to know the basic long hand version first because I want to understand. What I am having a problem with is generics. I did a tutorial and couldn't get the generics to all work. So I wanted to do it the hard way and move on then go back when I know more. I need an example of a queried result set. the 'get_absolute_url' from the model with the query line and render_to_response from the view and the regex url from URLConf without the generic references that should be enough to get me going if someone could just cut and paste in some arbitrary code I would be very gratefull thanks --jerry -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Hello, everyone.I come from China.I like python,
Welcome from one noob to another On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote: > Hello, everyone.I come from China.I like python, so I taught myself > python is now in self-study the django. > After the exhibitions, and welcome to play. > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Hello, everyone.I come from China.I like python,
? I am not sure what that means. On Wed, May 2, 2012 at 11:19 AM, Amao Zhao wrote: > Noob ~~ > > 在 2012年5月3日星期四,Gerald Klein 写道: > >> Welcome from one noob to another >> >> On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote: >> >>> Hello, everyone.I come from China.I like python, so I taught myself >>> python is now in self-study the django. >>> After the exhibitions, and welcome to play. >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux registered user #548580 >> >> >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Hello, everyone.I come from China.I like python,
Hence the question I always seen that as short for new-be On Wed, May 2, 2012 at 11:29 AM, Marcin Tustin wrote: > Try translating it with: http://translate.google.com/ (It works!) > > On Wed, May 2, 2012 at 5:24 PM, Gerald Klein wrote: > >> ? I am not sure what that means. >> >> >> On Wed, May 2, 2012 at 11:19 AM, Amao Zhao wrote: >> >>> Noob ~~ >>> >>> 在 2012年5月3日星期四,Gerald Klein 写道: >>> >>>> Welcome from one noob to another >>>> >>>> On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote: >>>> >>>>> Hello, everyone.I come from China.I like python, so I taught myself >>>>> python is now in self-study the django. >>>>> After the exhibitions, and welcome to play. >>>>> >>>>> -- >>>>> 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 >>>>> django-users+unsubscr...@googlegroups.com. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/django-users?hl=en. >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Gerald Klein DBA >>>> >>>> contac...@geraldklein.com >>>> >>>> www.geraldklein.com <http://geraldklein.com/> >>>> >>>> j...@zognet.com >>>> >>>> 708-599-0352 >>>> >>>> >>>> Linux registered user #548580 >>>> >>>> >>>> >>>> -- >>>> 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 >>>> django-users+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/django-users?hl=en. >>>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux registered user #548580 >> >> >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > > > -- > Marcin Tustin > Tel: 07773 787 105 > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Short I hope explanation
ok thanks I will give that a look. On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick wrote: > On Wed, May 2, 2012 at 11:50 AM, Gerald Klein wrote: > > Hi, I have been through a couple of tutorials including the one on the > site, > > the one thing that the authors have in common is they seem to want to > jump > > to the 'short cuts' to soon. I like to know the basic long hand version > > first because I want to understand. > > > > What I am having a problem with is generics. I did a tutorial and > couldn't > > get the generics to all work. So I wanted to do it the hard way and move > on > > then go back when I know more. > > > > I need an example of a queried result set. > > > > the 'get_absolute_url' from the model > > with the query line and render_to_response from the view and > > the regex url from URLConf without the generic references > > that should be enough to get me going if someone could just cut and > paste in > > some arbitrary code I would be very gratefull > > > > thanks > > > > --jerry > > > > > > > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > Have you checked out the djangobook.com http://www.djangobook.com/en/2.0/ > > Its a little dated in that it doesn't cover Class based generic views. > But it does walk you thru the individual pieces before it puts them > together and then rolls into the shortcuts > > > -- > Joel Goldstick > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Hello, everyone.I come from China.I like python,
See that's what I thought but I was corrected by mr Tustin On Wed, May 2, 2012 at 11:31 AM, Joel Goldstick wrote: > On Wed, May 2, 2012 at 12:24 PM, Gerald Klein wrote: > > ? I am not sure what that means. > > > > > > On Wed, May 2, 2012 at 11:19 AM, Amao Zhao wrote: > >> > >> Noob ~~ > >> > >> 在 2012年5月3日星期四,Gerald Klein 写道: > >>> > >>> Welcome from one noob to another > >>> > >>> On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote: > >>>> > >>>> Hello, everyone.I come from China.I like python, so I taught myself > >>>> python is now in self-study the django. > >>>> After the exhibitions, and welcome to play. > >>>> > >>>> -- > >>>> 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 > >>>> django-users+unsubscr...@googlegroups.com. > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/django-users?hl=en. > >>>> > >>> > >>> > >>> > >>> -- > >>> > >>> Gerald Klein DBA > >>> > >>> contac...@geraldklein.com > >>> > >>> www.geraldklein.com > >>> > >>> j...@zognet.com > >>> > >>> 708-599-0352 > >>> > >>> > >>> Linux registered user #548580 > >>> > >>> > >>> > >>> -- > >>> 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 > >>> django-users+unsubscr...@googlegroups.com. > >>> For more options, visit this group at > >>> http://groups.google.com/group/django-users?hl=en. > >> > >> -- > >> 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 > >> django-users+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/django-users?hl=en. > > > > > > > > > > -- > > > > Gerald Klein DBA > > > > contac...@geraldklein.com > > > > www.geraldklein.com > > > > j...@zognet.com > > > > 708-599-0352 > > > > > > Linux registered user #548580 > > > > > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > haha! its shortened version of noobie which is slang for a new learner > > -- > Joel Goldstick > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Hello, everyone.I come from China.I like python,
I have been around a long time but I keep on learning new things On Wed, May 2, 2012 at 11:09 AM, M Hussain wrote: > Hello > > me too a newbie ;) but Gerald you seems like a veteran from your site. > I hope we are't spamming. > > Regards > Hussain > > > > On Wed, May 2, 2012 at 6:01 PM, Gerald Klein wrote: > >> Welcome from one noob to another >> >> >> On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote: >> >>> Hello, everyone.I come from China.I like python, so I taught myself >>> python is now in self-study the django. >>> After the exhibitions, and welcome to play. >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux registered user #548580 >> >> >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Short I hope explanation
Good pick on the book, thanks. It is a lot more like what people need to pick something up. thanks --jerry On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick wrote: > On Wed, May 2, 2012 at 11:50 AM, Gerald Klein wrote: > > Hi, I have been through a couple of tutorials including the one on the > site, > > the one thing that the authors have in common is they seem to want to > jump > > to the 'short cuts' to soon. I like to know the basic long hand version > > first because I want to understand. > > > > What I am having a problem with is generics. I did a tutorial and > couldn't > > get the generics to all work. So I wanted to do it the hard way and move > on > > then go back when I know more. > > > > I need an example of a queried result set. > > > > the 'get_absolute_url' from the model > > with the query line and render_to_response from the view and > > the regex url from URLConf without the generic references > > that should be enough to get me going if someone could just cut and > paste in > > some arbitrary code I would be very gratefull > > > > thanks > > > > --jerry > > > > > > > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > > Have you checked out the djangobook.com http://www.djangobook.com/en/2.0/ > > Its a little dated in that it doesn't cover Class based generic views. > But it does walk you thru the individual pieces before it puts them > together and then rolls into the shortcuts > > > -- > Joel Goldstick > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Short I hope explanation
Thanks for shout out. And I will move on to them, but I like to understand things the hard way first. I think it gives a strong foundation when you finally do move on to the time saver things. The thing is as I understand it, is that there are times that you will need to do things long hand. I would like to have a good understanding of that when the time comes instead of the OMG googlerama I've got a dead line why now thing. But thanks it's good information. Never found a fact I didn't like. --jerry On Thu, May 3, 2012 at 2:36 PM, Kurtis Mullins wrote: > When I first dove into Django, everything was confusing. I can't say I > ever used the book because I wanted to use class-based-views immediately > (was recommended in IRC). They were confusing as could be, I constantly > needed hand-holding, etc... > > Eventually, I started to understand things a bit more, was able to > comprehend and use the docs, and finally I'm at the point where I just > refer to the actual source code when I want to get something done with > them. It was a steep learning curve with the lack of good documentation on > them but I *highly* recommend using them. They will save you a lot of time > in the end. Just my 2 cents :) > > If I knew of a good place to post them, I'd be happy to write up a > tutorial with some cool tricks in my free time. A wiki would be best > because others (especially those more knowledgeable than I) could also > contribute. > > On Thu, May 3, 2012 at 3:33 PM, Gerald Klein wrote: > >> Good pick on the book, thanks. It is a lot more like what people need to >> pick something up. >> >> thanks >> >> --jerry >> >> On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick > > wrote: >> >>> On Wed, May 2, 2012 at 11:50 AM, Gerald Klein wrote: >>> > Hi, I have been through a couple of tutorials including the one on the >>> site, >>> > the one thing that the authors have in common is they seem to want to >>> jump >>> > to the 'short cuts' to soon. I like to know the basic long hand version >>> > first because I want to understand. >>> > >>> > What I am having a problem with is generics. I did a tutorial and >>> couldn't >>> > get the generics to all work. So I wanted to do it the hard way and >>> move on >>> > then go back when I know more. >>> > >>> > I need an example of a queried result set. >>> > >>> > the 'get_absolute_url' from the model >>> > with the query line and render_to_response from the view and >>> > the regex url from URLConf without the generic references >>> > that should be enough to get me going if someone could just cut and >>> paste in >>> > some arbitrary code I would be very gratefull >>> > >>> > thanks >>> > >>> > --jerry >>> > >>> > >>> > >>> > >>> > -- >>> > 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 >>> > django-users+unsubscr...@googlegroups.com. >>> > For more options, visit this group at >>> > http://groups.google.com/group/django-users?hl=en. >>> >>> >>> Have you checked out the djangobook.com >>> http://www.djangobook.com/en/2.0/ >>> >>> Its a little dated in that it doesn't cover Class based generic views. >>> But it does walk you thru the individual pieces before it puts them >>> together and then rolls into the shortcuts >>> >>> >>> -- >>> Joel Goldstick >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >>> >> >> >> -- >> >> Gerald Klein DBA >> >> contac...@geraldklein.com >> >> www.geraldklein.com <http://geraldklein.com/> >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Linux registered user #548580 >> >> &
Re: How do you install Django on a shared hosting without root access?
What host? thanks --jerry On Sun, May 13, 2012 at 2:49 PM, Dan Santos wrote: > I forced my local web host (twisted their arm) and the day after they > created a new procedure for setting up Django without having to use root > access. > > Problem solved :) > > > > On Saturday, May 12, 2012 8:39:27 PM UTC+2, Dan Santos wrote: >> >> Hi I'm confused about how to setup Django on my shared hosting account >> without using root. They don't have Django or Python support so I will >> have to install everything from scratch I guess. >> >> Do I install things in this order for shared hosting, or have I messed up >> the order when not using root? >> >> 1. Python 2.7 >> 2. virtualenv.py >> http://www.virtualenv.org/en/**latest/index.html<http://www.virtualenv.org/en/latest/index.html> >> >> 3. (ENV1)$ pip install django >> >> >> -- > 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/-/JbtefCDiKMIJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to call a correct version of python when multiple ones are installed?
python2.7 manage.py etc. On Fri, May 25, 2012 at 11:07 AM, Mohan Boddu wrote: > Hello, > > I am very new to python and django. My question is, since django works on > python version more than 2.5 and if I am having multiple versions of python > say 2.4 and 2.6, now how can I call django with the correct version of > python. Is there any way to do that. > > Any help would be appreciated. > > Thank you, > Mohan Boddu. > > -- > 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/-/kxdxH1MSSE0J. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Question
I agree with Nik, the tutorial works but you have to make sure to pay close attention and follow every step. I made the mistake the first time though because I am a veteran of assuming too much and ended up missing nuances that were pivotal to get things to work and beat my head against the wall till someone told me what I'm telling you. Be patient and please ask direct questions so that we can answer them directly with example. --jerry On Thu, Jun 7, 2012 at 2:46 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > The official tutorial is probably the best "getting started" literature > for Django that I've come across. What sorts confusion/bugs are you > encountering? > > And just to make sure: this is the tutorial you're referring to? > https://docs.djangoproject.com/en/1.4/intro/tutorial01/ > > _Nik > > On 6/7/2012 12:36 PM, Peregil wrote: > > I am trying to learn how to work with Django, and I am trying to make > > a user registration with a login/password user. However, all the > > tutorials are confusing and with so many bugs to run something. I > > would appreciate if someone knows a great website, book, or have an > > example how to create this page. > > > > Thanks and have a great day > > > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Stuck already on step one, django on windows
If I understand you correctly it just asking you to enter a directory via cli, although you may not have ksh,bash or whatever windows still uses a filesystem. run "cmd" from the start menu run prompt. Then navigate to the directory they are instructing, some simple commands are duplicated between both worlds 'cd' being one of them, they are getting you located in relation to the python environment that you need to access. On Thu, Jun 14, 2012 at 2:24 AM, Daniel Patriarca wrote: > I just installed python, then mysql, then django on my windows 7 machine > and I think it worked because I ran the import django comand from python > and nothing barked at me. I thought. yeah... time to hit the tutorial but > the first thing it tells me to do is cd to a directory. Is there a unix > emulator that got installed on my windows machine or something? I actually > do some unix programming in ksh but this is my first time trying to program > in a windows environment. Can someone help me get past step one in the > tuturial!!! > > I rent space on a server run by hostmonster.com. Would it be a better > idea for me to learn how to do all this straight on my server instead of > windows anyways? I don't even know how to tell if the django stuff works > within my hosting environment. > > -dan > > -- > 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/-/IJqLi0kFog4J. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I am in trouble
Indentation Error, see if you can turn on hidden characters in your editor and find out if you have exactly the correct amount of spaces for each indented section. Some time it looks right but it is not. It also looks like your def statement should go to the left margin and not be indented from the from statement. --jerry On Wed, Sep 26, 2012 at 7:48 AM, hetwen wrote: > hello every, >When I configure apache,mod_pyton and mod_pywebsocket on > windows7,some errors occurred,this is a part of my httpd.conf, > AddHandler mod_python .py > PythonHandler mod_python.publisher > PythonDebug On > > test.py is test file ,but it does not work > > test.py: > > " > from mod_python import apache >def index(reg): > retutn "test successful!" > " > > > And the following is the erors in my browser: > > > > MOD_PYTHON ERROR > > ProcessId: 5012 > Interpreter:'HP-WORK.mshome.net' > > ServerName: 'HP-WORK.mshome.net' > DocumentRoot: 'D:/webserver/htdocs' > > URI:'/test.py' > Location: None > Directory: 'D:/webserver/htdocs/' > Filename: 'D:\\webserver\\htdocs\\test.py' > PathInfo: '' > > Phase: 'PythonHandler' > Handler:'mod_python.publisher' > > Traceback (most recent call last): > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 1537, in HandlerDispatch > default=default_handler, arg=req, silent=hlist.silent) > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 1229, in _process_target > result = _execute_target(config, req, object, arg) > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 1128, in _execute_target > result = object(arg) > > File "D:\program files\Python27\lib\site-packages\mod_python\publisher.py", > line 204, in handler > module = page_cache[req] > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 1059, in __getitem__ > return import_module(req.filename) > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 296, in import_module > log, import_path) > > File "D:\program files\Python27\lib\site-packages\mod_python\importer.py", > line 680, in import_module > execfile(file, module.__dict__) > > File "D:\webserver\htdocs\test.py", line 2 > > def index(req): > >^ > > IndentationError: unexpected indent > > > MODULE CACHE DETAILS > > Accessed: Wed Sep 26 20:15:52 2012 > Generation: 0 > > _mp_625e47495e7a448168bb400d2e5090cc { > FileName: 'D:\\webserver\\htdocs\\test.py' > Instance: 1 [IMPORT] > Generation: 0 [ERROR] > Modified: Wed Sep 26 20:02:31 2012 > } > > > > > > Has any else met this problem? > > Please help. > > -- > 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/-/nCxI7k5t2-IJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Invitation to use Google Talk
I have no idea On Thu, Sep 27, 2012 at 6:22 PM, Rivsen wrote: > What's this? > > 2012/9/28 Google Talk > >> --- >> >> You've been invited by Robert Kvaal to use Google Talk. >> >> If you already have a Google account, login to Gmail and accept this chat >> invitation: >> >> http://mail.google.com/mail/b-90f4d8d70d-e60ea03784-aKi-Kg_vzoaDZXyru790CzdHuAY >> >> To sign up for a Google account and get started with Google Talk, you can >> visit: >> >> http://mail.google.com/mail/a-90f4d8d70d-e60ea03784-aKi-Kg_vzoaDZXyru790CzdHuAY?pc=en-rf---a >> >> Learn more at: >> http://www.google.com/intl/en/landing/accounts/ >> >> >> Thanks, >> The Google Team >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Noobe alert
Hi, I finally got a project in Django and I have a "what I hope is an easy question" I started to set up a production server and yes the admin css dissappeared, I went though the docs and followed them. I used the Collect Static Files method and still no joy. Here is my info: #settings.py MEDIA_ROOT = '/var/www/virtualenv-test/ENV/testsite/media/' MEDIA_URL = 'http://localhost/media/' STATIC_ROOT = '/var/www/virtualenv-test/ENV/testsite/static/' STATIC_URL = 'http://localhost/static/' #niginx root /var/www/virtualenv-test/ENV/testsite; location /media/ { root /var/www/virtualenv-test/ENV/testsite/media; } location /static/ { root /var/www/virtualenv-test/ENV/testsite/static; } My project is located in /var/www/virtualenv-test/ENV/ the project is testsite so the hierarchy inside ENV is: testsite/ media/ static/all files from collect static files testsite/ __init__.py settings.py urls.py wsgi.py manage.py I am using version (1, 4, 2, 'final', 0). If somebody can point out the probably obvious problem that I am missing I would greatly appreciate it. thanks in advance for your help --jerry -- j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Fwd: Noobe alert [solved]
Hi, Yea got it, the nginx static had to be removed from the alias url. thanks -- Forwarded message -- From: Gerald Klein Date: Sat, Nov 17, 2012 at 1:27 PM Subject: Noobe alert To: django-users@googlegroups.com Hi, I finally got a project in Django and I have a "what I hope is an easy question" I started to set up a production server and yes the admin css dissappeared, I went though the docs and followed them. I used the Collect Static Files method and still no joy. Here is my info: #settings.py MEDIA_ROOT = '/var/www/virtualenv-test/ENV/testsite/media/' MEDIA_URL = 'http://localhost/media/' STATIC_ROOT = '/var/www/virtualenv-test/ENV/testsite/static/' STATIC_URL = 'http://localhost/static/' #niginx root /var/www/virtualenv-test/ENV/testsite; location /media/ { root /var/www/virtualenv-test/ENV/testsite/media; } location /static/ { root /var/www/virtualenv-test/ENV/testsite/static; } My project is located in /var/www/virtualenv-test/ENV/ the project is testsite so the hierarchy inside ENV is: testsite/ media/ static/all files from collect static files testsite/ __init__.py settings.py urls.py wsgi.py manage.py I am using version (1, 4, 2, 'final', 0). If somebody can point out the probably obvious problem that I am missing I would greatly appreciate it. thanks in advance for your help --jerry -- j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Noobe alert
Hey and thanks for the post, I actually posted this back on saturday and I figured it out, actually the way you are saying but it wasn't the permissions. I had to much info, the url going into nginx had two static directories next to each other, at first I tried to remove one but I decided to go with an empty string for STATIC_ROOT and that was it. No problems now, (basically follow the docs) duhh. But thanks I appreciate the post. --jerry On Fri, Nov 30, 2012 at 5:12 PM, Chris Cogdon wrote: > Check the error log for nginx to see if there's any hint of why the > statics aren't showing up. > > My best guess is that the web server is running as a user that does not > have access to the files, and the error log should be showing up with > various "permission denied" messages. > > The usual culprit is that while the static directory and files are > readable by everyone, the parent directories do not have the "execute" > permission bit set. On a directory "execute" means the ability to trasverse > the directory and get access to the contents, but not get a directory > listing. > > To fix, try something like this: > > chmod a+x /var /var/www /var/www/virtualenv-test > /var/www/virtualenv-test/ENV /var/www/virtualenv-test/ENV/** > testsite /var/www/virtualenv-test/ENV/**testsite/static > > > > On Saturday, November 17, 2012 11:28:01 AM UTC-8, Gerald Klein wrote: >> >> Hi, I finally got a project in Django and I have a "what I hope is an >> easy question" I started to set up a production server and yes the admin >> css dissappeared, I went though the docs and followed them. I used the >> Collect Static Files method and still no joy. Here is my info: >> >> #settings.py >> MEDIA_ROOT = '/var/www/virtualenv-test/ENV/**testsite/media/' >> MEDIA_URL = 'http://localhost/media/' >> STATIC_ROOT = '/var/www/virtualenv-test/ENV/**testsite/static/' >> STATIC_URL = 'http://localhost/static/' >> >> #niginx >> >> >> root /var/www/virtualenv-test/ENV/**testsite; >> >> location /media/ { >> root /var/www/virtualenv-test/ENV/**testsite/media; >> } >> >> location /static/ { >> root /var/www/virtualenv-test/ENV/**testsite/static; >> } >> >> My project is located in /var/www/virtualenv-test/ENV/ >> >> the project is testsite so the hierarchy inside ENV is: >> >> testsite/ >> media/ >> static/all files from collect static files >> testsite/ >> __init__.py >> settings.py >> urls.py >> wsgi.py >> manage.py >> >> I am using version (1, 4, 2, 'final', 0). >> >> If somebody can point out the probably obvious problem that I am missing >> I would greatly appreciate it. >> >> thanks in advance for your help >> >> --jerry >> >> -- >> >> j...@zognet.com >> >> 708-599-0352 >> >> >> Arch Awesome, Ranger & Vim the coding triple threat. >> >> Linux registered user #548580 >> >> >> >> -- > 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/-/kmAdUKxb57UJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: New to Django / Web Development [ Confused About When to Store To Database For Static Content]
I think you answered the question yourself, if something rarely changes the only reason to store it in a db would be for convenience. Static pages are more successfully cached. ---jerry On Sat, Dec 22, 2012 at 5:43 PM, Django Son < i.ask.django.questi...@gmail.com> wrote: > Hi there, :) > > I'm a complete beginner at webdev and had a question about when to store > to a database for content that seldom changes. I understand the need to > access and modify a database for dynamic content but what about static > content? For instance, lets say my website has a large number of paragraphs > that don't change. Is there a performance benefit for saving these in a > database or is it solely for more modularity? When it comes to static > content, how do I know the line between when I should save it to a database > and when to hard-code it into a template? > > Thanks ahead of time for any help! > > -- > 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/-/UQViv1laBMsJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Very Odd Query problem
Hi all, I have a custom model mapped to a view, a join between a UserContact model which carries contacts for users and UserContactEmail which is the emails for the contacts. Very simple join. select concat(`t1`.`id`,'-',`t2`.`id`) AS `id`, `t2`.`usercontact_id` AS `usercontact_id`, `t1`.`user_id` AS `user_id`, `t1`.`first_name` AS `first_name`, `t1`.`last_name` AS `last_name`, `t1`.`is_locked` AS `is_locked`, `t1`.`manual_enter` AS `manual_enter`, `t1`.`is_trusted_contact` AS `is_trusted_contact`, `t1`.`is_admin` AS `is_admin`, `t2`.`email` AS `email` from (`auththis_usercontact` `t1` join `auththis_usercontactemail` `t2` on((`t1`.`id` = `t2`.`usercontact_id`)))$$ The Corresponding model is class View_UserContactEmail(models.Model): id = models.CharField(max_length=23, primary_key=True) usercontact_id = models.IntegerField() user_id = models.IntegerField() first_name = models.CharField('First name', max_length=30, blank=True) last_name = models.CharField('Last name', max_length=30, blank=True) is_locked = models.BooleanField("Locked", default=False) manual_enter = models.BooleanField("Hand Entered", default=False) is_trusted_contact = models.BooleanField("Trusted contact", default=False) is_admin = models.BooleanField("Admin", default=False) email = models.EmailField("Email", max_length=75,unique=True) class Meta: verbose_name = "User Contact Email" verbose_name_plural = "User Contact Emails" db_table = 'view_usercontactemail' def __unicode__(self): return "{0}: {1} {2} {3}".format(self.user, self.first_name, self.last_name, self.email) The django query: usercontactemails = View_UserContactEmail.objects.filter(user_id=user.pk ).filter(email='first_na...@firstname1.com') django result: first_na...@firstname1.com 1 firstname1 last_name1 first_na...@firstname1.com 3 first_name3 last_name3 the above columns are email, first name, last name Mysql: Turns back 1 row as it should but django turns back 2 rows 1 with false data mysql> select * from view_usercontactemail where email=' first_na...@firstname2.com' and user_id=1; +-++-+-++---+--++--++ | id | usercontact_id | user_id | first_name | last_name | is_locked | manual_enter | is_trusted_contact | is_admin | email | +-++-+-++---+--++--++ | 2-3 | 2 | 1 | first_name2 | last_name2 | 0 | 1 | 1 |0 | first_na...@firstname2.com | +-++-+-++---+--++--++ Mysql is correct so maybe I am wrong, can someone please take a look and see if they see something. PS the weird id column in the view is to accommodate django's need for a primary key thanks --jerry Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Database records being overriden with a multi-table inheritance schema
It seems like you have the same idea recurring twice in this model. This IMHO doesn't require multiple inheritance. I would call commoninfo customer with it's fields and inherit django user then Person and LegalEntity inherit customer (which inherits django user) and add on their specific fields and skip the PersonCustomer and the LegalEntityCustomer. Customer would inherit the django userid, and so then would person and legalentity. They could still be identitied with an 'is a' customer' or 'is a' Person or legal entity. hope this helps --jerry On Wed, Dec 26, 2012 at 7:50 AM, Marcelo Mendes Pereira < mpmarcel...@gmail.com> wrote: > Customer -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Database records being overriden with a multi-table inheritance schema
I can't see from this a clear hierarchy, please describe relationships of supervisors and managers etc. make hierarchy block diagram to show how parts relate. On Wed, Dec 26, 2012 at 11:07 AM, Marcelo Mendes Pereira < mpmarcel...@gmail.com> wrote: > I think a i figured out a solution but i don't have a complete > understanding about the problem to explain exactly what i was doing wrong, > but here is my schema now > > class CommonInfo(models.Model): > class Meta: > abstract = True > > class User(models.Model): > user = models.OneToOneField('auth.user') > > class Person(User, CommonInfo): > # specific fields > pass > > class LegalEntity(User, CommonInfo): > # specific fields > pass > > class Seller(User): > # specific fields > pass > > class PersonSeller(Person, Seller): > # specific fields > pass > > class LegalEntitySeller(LegalEntity, Seller): > # specific fields > pass > > class Supervisor(Seller): > # specific fields > supervisees = models.ManyToManyField('Seller', related_name='supervisors') > > class Customer(User): > # specific fields > pass > > class PersonCustomer(Person, Customer): > # specific fields > pass > > class LegalEntityCustomer(LegalEntity, Customer): > # specific fields > pass > > class Manager(User): > # specific fields > pass > > Unfortunately now i have a table user that control the generation of the > dynamic ids to the models ensuring that i will not have a > LegalEntityCustomer or PersonCustomer refering the same Customer, and as i > needed a field user to refer to a django user i took the opportunity and > used the same model User to define this field. > > Em quarta-feira, 26 de dezembro de 2012 10h13min20s UTC-2, Marcelo Mendes > Pereira escreveu: >> >> Hi, i am trying to model the database for a project that i am developing >> i have the following models >> >> class CommonInfo(models.Model): >> #fields >> class Meta: >> abstract = True >> class Person(CommonInfo): >> #fields >> class LegalEntity(CommonInfo): >> #fields >> class User(models.Model): >> user = models.OneToOneField('auth.**user', unique=True) >> class Meta: >> abstract = True >> class Customer(User): >> #implicit user referece to a django user 'auth.user' >> >> class PersonCustomer(Person, Customer): >> #implicit user referece to a django user 'auth.user' >> >> class LegalEntityCustomer(**LegalEntity, Customer): >> #implicit user referece to a django user 'auth.user' >> >> I created the ModelAdmin to each model and setted a custom form to create >> a django user every time a customer is created, but the problem i am >> getting is that when i create a PersonCustomer (the custom form creates a >> django user as expected) and after that a LegalEntityCustomer (again >> another django user is created as expected) the PersonCustomer has its user >> reference changed to the django user created to LegalEntityCustomer, >> actually if i change the order of creation the same thing happens but this >> time the LegalEntityCustomer that has it's user reference changed, anybody >> know what i am doing wrong? Thanks, in advance. >> > -- > 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/-/U_5SkUFAxRIJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Database records being overriden with a multi-table inheritance schema
I think you are a little to micro what is the difference between a Person and the other entities are they all not people? On Wed, Dec 26, 2012 at 11:07 AM, Marcelo Mendes Pereira < mpmarcel...@gmail.com> wrote: > I think a i figured out a solution but i don't have a complete > understanding about the problem to explain exactly what i was doing wrong, > but here is my schema now > > class CommonInfo(models.Model): > class Meta: > abstract = True > > class User(models.Model): > user = models.OneToOneField('auth.user') > > class Person(User, CommonInfo): > # specific fields > pass > > class LegalEntity(User, CommonInfo): > # specific fields > pass > > class Seller(User): > # specific fields > pass > > class PersonSeller(Person, Seller): > # specific fields > pass > > class LegalEntitySeller(LegalEntity, Seller): > # specific fields > pass > > class Supervisor(Seller): > # specific fields > supervisees = models.ManyToManyField('Seller', related_name='supervisors') > > class Customer(User): > # specific fields > pass > > class PersonCustomer(Person, Customer): > # specific fields > pass > > class LegalEntityCustomer(LegalEntity, Customer): > # specific fields > pass > > class Manager(User): > # specific fields > pass > > Unfortunately now i have a table user that control the generation of the > dynamic ids to the models ensuring that i will not have a > LegalEntityCustomer or PersonCustomer refering the same Customer, and as i > needed a field user to refer to a django user i took the opportunity and > used the same model User to define this field. > > Em quarta-feira, 26 de dezembro de 2012 10h13min20s UTC-2, Marcelo Mendes > Pereira escreveu: >> >> Hi, i am trying to model the database for a project that i am developing >> i have the following models >> >> class CommonInfo(models.Model): >> #fields >> class Meta: >> abstract = True >> class Person(CommonInfo): >> #fields >> class LegalEntity(CommonInfo): >> #fields >> class User(models.Model): >> user = models.OneToOneField('auth.**user', unique=True) >> class Meta: >> abstract = True >> class Customer(User): >> #implicit user referece to a django user 'auth.user' >> >> class PersonCustomer(Person, Customer): >> #implicit user referece to a django user 'auth.user' >> >> class LegalEntityCustomer(**LegalEntity, Customer): >> #implicit user referece to a django user 'auth.user' >> >> I created the ModelAdmin to each model and setted a custom form to create >> a django user every time a customer is created, but the problem i am >> getting is that when i create a PersonCustomer (the custom form creates a >> django user as expected) and after that a LegalEntityCustomer (again >> another django user is created as expected) the PersonCustomer has its user >> reference changed to the django user created to LegalEntityCustomer, >> actually if i change the order of creation the same thing happens but this >> time the LegalEntityCustomer that has it's user reference changed, anybody >> know what i am doing wrong? Thanks, in advance. >> > -- > 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/-/U_5SkUFAxRIJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Stuck
do you use vim? There is a nice function that can straighten this out for you. Also tabs va spaces can make a difference. Make sure a given block is either all space indented ot all tab indented. add to vimrc set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< then type :set list this will show whitespace characters and highlight difference tabs/spaces to see them. --jerry On Wed, Dec 26, 2012 at 4:16 PM, Ramiro Morales wrote: > > On Dec 26, 2012 5:56 PM, wrote: > > > > This is strange - the original code is indented correctly; however, the > copy/paste shows incorrect indentation. > > This could happen if you mix spaces andás tabs. Read some introductory > Python material to know more why this is a bad idea and a basic mistake. > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Python shell doesn't launch
@cramm0 obviously new to the game, cut him a break. On Wed, Dec 26, 2012 at 4:11 PM, Ramiro Morales wrote: > On Dec 26, 2012 7:05 PM, wrote: > > > > Whenever I run "python manage.py shell," I don't get any errors, but I > get the following: > > > > C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py shell > > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit > (Intel)] on win > > 32 > > Type "help", "copyright", "credits" or "license" for more information. > > (InteractiveConsole) > > > > Any ideas on what am I doing or have done wrong? > > That's what is supposed to happen. What did you expect? > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Tie Social auth to contact retrievel
Hi, I have social-auth working great and I have the retrieval of contacts working also, I was wondering if someone can point me to a code example, that if someone is logged in with their google login that can automatically authenticate the retrieval of the contacts too instead of me asking for their login again? thanks in advance for your help --jerry -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: how to fatch data from mysql database using jQuery in my django project?
You have to call an action from jQuery and use the results passed back, you can return it in json text etc, this will be returned to the jQuery ajax get call. $.get(url,function(data) { //use data here to inject html }); On Wed, Apr 17, 2013 at 8:57 AM, Avnesh Shakya wrote: > hi, > please tell me someone, I want to fetch data dynamically using jquery > from database.. how it is possible, give me a example... please help me, i > need it in my project. >Thanks > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Hello everyone, can you tell me a good django's book that explains the various functions but at the same time develop a complete website chapter by chapter?
Besides the great documentation and examples on the Django site I would look at http://www.djangobook.com/en/2.0/index.html You also bought three more books take a look at them before buying more, if you are just starting though I would start with the docs on the site and the link I have provided. thanks --jerry On Thu, May 9, 2013 at 3:56 AM, Federico Erbea wrote: > I bought a Marco Beri's book "Sviluppare applicazioni web con django" but > after the first chapter only explains the different functions in contrast > to the first chapter where the functions were explained by developing them. > I also bought "Instant Django Application Development > Starter<http://books.google.it/books?id=7Ebmb9UpCycC&pg=PA14&dq=Instant+Django+Application+Development+Starter&hl=it&sa=X&ei=hmOLUY7PMpPe7AaTpYGoCw&ved=0CDYQ6AEwAA>" > of Mauro Rocco, > "<https://groups.google.com/forum/Definitive%20Guide%20to%20Django:%20Web%20Development%20Done%20Right>Definitive > Guide to Django: Web Development Done > Right"<http://books.google.it/books?id=Gpr7J7-FFmwC&printsec=frontcover&dq=Definitive+Guide+to+Django:+Web+Development+Done+Right&hl=it&sa=X&ei=qGOLUYmYN6ro7AbXn4DIDw&ved=0CD0Q6AEwAA>of > Holovaty > Adrian and "Pro > Django<http://books.google.it/books/about/Pro_Django.html?id=lJwOcsZq5g4C&redir_esc=y>" > of Alchin Marty. > I have not read the last three, think reflect my request or do you know of > the best and most related. > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Setting up Django on GoDaddy Deluxe Shared Hosting
from django.contrib import admin > admin.autodiscover() > > urlpatterns = patterns('', > (r'^static/(.*)$', 'django.views.static.serve', {'document_root': > settings.STATIC_ROOT}), > url(r'^admin/', include(admin.site.urls)), > ) > > This will ensure you can access the admin application, as well as the > static root where all your img js and css are. Also note to copy the admin > img/js/css from /django/contrib/admin/static. Mine was in > > ~/lib/venv/lib/python2.7/site-packages/django/contrib/admin/ > > I used cp -r to copy it over to my application static dir > /var/chroot/home/content/11/10420811/lib/venv/mysite/static/ > > cp -r ~/lib/venv/lib/python2.7/site-packages/django/contrib/admin/ > ~/lib/venv/mysite/static/ > > 12. That is it, you should have access to your site now! Access to > http://your.website.com/adminshould work! > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Please help me in Django
Hi, Can't start it? Please be precise with what you mean it helps us help you. On Mon, Jun 10, 2013 at 5:57 AM, Abhimanyu Choithramani < life.abhi.l...@gmail.com> wrote: > I downloaded Python 2.7.5 and it started working. > And I downloaded Django 1.5.1 BUT I am not being able to start it. > Can someone please guide me step by step.. > PLEASE please please.. > > Would be obliged if I also get a voice guidance over Skype. > my skype id is: abhimanyu.choithramani89 > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Unable to open database.
It looks fine but that depends on your folder structure but this is showing "myproject" off the root of the file system, is that correct? On Thu, Jul 25, 2013 at 5:12 AM, Nigel Legg wrote: > I have just moved my project from Windows to Linux. I have maintained the > folder structure, but am getting the message "Unable to open database file > - sqlite3". > Settings as follows: > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.sqlite3', > 'NAME': '/myproject/database/sqlite3', > 'USER': '', > 'PASSWORD': '', > 'HOST': '', > 'PORT': '', > } > } > I'm very new at using Linux, is this a path definition error? > > Cheers,Nigel > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Multiple versions of Django
Yes, use something like VirtualEnv, it allows you to separate website environments and requirements and it has nice additionals to help you publish On Mon, Sep 30, 2013 at 10:25 AM, Jasvir Singh wrote: > Is it possible to install multiple versions of Django on single ubuntu > server. > If yes, please tell me how to do this. > I have already made a try for this using virtual environment, but > found that it is only for development. > > -- > > Jasvir Singh Grewal > Blog:http://jasvirsinghgrewal91.wordpress.com/ > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAN_O85vhiKvpdxf74stvfR1AsLcoP6E1EeC1M86nHgFRF34K1g%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCxFLYQ795ZyzHbHumNH9uDpf-MUET7PbxwyA%3DXVovo9pw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Multiple versions of Django
Sorry please disregard I didn't read far enough into your message On Mon, Sep 30, 2013 at 10:25 AM, Jasvir Singh wrote: > Is it possible to install multiple versions of Django on single ubuntu > server. > If yes, please tell me how to do this. > I have already made a try for this using virtual environment, but > found that it is only for development. > > -- > > Jasvir Singh Grewal > Blog:http://jasvirsinghgrewal91.wordpress.com/ > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAN_O85vhiKvpdxf74stvfR1AsLcoP6E1EeC1M86nHgFRF34K1g%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCw5tr3%3Dt0k6H2CUVGfaNkX6jFhArh6E1iz32s412%3DjL0Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: establish database connectivity to Mysql database using django
http://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html On Sat, Mar 14, 2015 at 9:52 AM, Shichand Chandran < shichandchandran...@gmail.com> wrote: > could some one help us > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/91489716-8bba-4705-8df1-ec6e527c4998%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/91489716-8bba-4705-8df1-ec6e527c4998%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCwyuKFpw4uEK-xXT80sTXgiCcSz2Sh%2BRzqqVHtGsLrfxQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Invalid HTTP_HOST, can someone explain why I am getting this?
emails from it, send >>> an email to django-users...@googlegroups.com. >>> To post to this group, send email to django...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/ab908cd5-8c5b-4d6e-9033-80fca60415f7%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/ab908cd5-8c5b-4d6e-9033-80fca60415f7%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/49950182-ac4b-46d8-a277-b265407edfb4%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/49950182-ac4b-46d8-a277-b265407edfb4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCyE9AtLrQ9T%2BN_f8A9CzkAyGgybDU%2BzybzJrcA94uUjPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: New user - struggling with database design
their order if I am understanding you right does not effect this, the last part is just a join between the tables, you don't have to create another table On Thu, Aug 28, 2014 at 8:46 AM, Jason G wrote: > Hi all, > > I am building an app to track my home brewing. > > I have two tables, one for vessels, and another for brews. > > I want the Brew table to have a pick-list, relation to Vessels so I can > say what vessel the brew is in. > > I also want to render a table that shows all Vessels and what Brew is in > each. There should be a one-to-one relationship until the Brew is 'Kicked', > which could be a vessel or maybe a null value in the Brew table. > > My code currently doesn't work, but looks something like this: > > class Vessel(models.Model): > Name = models.CharField(max_length=20) > Gallons = models.DecimalField(max_digits=4, decimal_places=2, > null=True, blank=True) > Weight = models.DecimalField(max_digits=4, decimal_places=2, > null=True, blank=True) > CurrentBrew = models.ForeignKey(Brew, db_column='Vessel') > <--this is what I'm trying to add > def __unicode__(self): > return self.Name > > class Brew(models.Model): > ... > Name = models.CharField(max_length=40, null=True, default='TBD') > InformalName = models.CharField(max_length=40) > Status = models.IntegerField(max_length=1, choices=STATUS_CHOICES, > default=1, null=False, blank=False) > Gallons = models.DecimalField(max_digits=4, decimal_places=2, > null=True, blank=True) > Vessel = models.ForeignKey(Vessel) > Style = models.ForeignKey(Style) > Event = models.CharField(max_length=40, null=True, blank=True) > > In this model, which I'm not sure is the best way to do it, the Vessel > class does not yet know about the Brew model that is below it. > > I'm starting to grasp this language (and love it, coming from doing > asp/sql several years ago) but I'm stuck here. Help! > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/dd40f53a-c398-4806-b09d-1605d3f15ead%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/dd40f53a-c398-4806-b09d-1605d3f15ead%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCz9%2BURQG23wR%3DXSkUozJ7vFvDXOnp5cfyRPMFdXTOJ%2BzQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Odd subform caching problem
HI, I have a simple contact form with an address subform in the form of "TabularInline" where you can add an arbitrary amount of addresses, after I add a contact and an address and save, when I go to add a brand new contact and address, the address that I just added will be there and if I add the new contact it will over write not only the address but contact I added previously, so it is keeping the entire record and updating it. It won't fix itself until I stop the django server and start it again. Then I can do the whole thing again with a new record. I appreciate any that someone can give, thanks -- Gerald Klein DBA j...@zognet.com 708-599-0352 <http://t.senalcinco.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs1p1kmsW3N1NWP1p8b8gW3LPXXH56dyQSf6HGzv402?t=&si=5404167384858624&pi=a2eb81f5-ac64-4145-f2c5-d86754219b9a> Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCxhz7Ct-ToMz8nEWmKeWiBsn1%3D5_SW%2BLSJuhmJLPvfQtQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Odd subform caching problem
Daniel, I didn't include any code as I didn't do anything unusual but if you think that would help here it is.I was hoping that there was some ordinary theoretical basis for this as I didn't do anything custom really, aside from the id generation for the "Entity" class, which I generate the id manually much like an Oracle sequence object, I do this in order to facilitate the creation of relationships between arbitrary objects. Any help is appreciated ***models** def get_entity_id(): # try: db = mysql.connect(host="localhost", user="root", passwd="jerryklein", db="entities") db.query("insert entities_entityid (fake) select ' '") id = db.insert_id() return id class Entity(models.Model): """ the fName field is also the company name field """ id = models.BigIntegerField(primary_key=True, unique=True, default=get_entity_id()) fName = models.CharField(max_length=255, blank=True, null=True) lName = models.CharField(max_length=255) entityType = models.ForeignKey(EntityType) class Meta: verbose_name = "Entity" verbose_name_plural = "Entities" def __unicode__(self): return "{0} {1}".format(self.fName, self.lName) class Address(models.Model): addressType = models.ForeignKey(AddressType) entity = models.ForeignKey(Entity) add1 = models.CharField(max_length=50) add2 = models.CharField(max_length=50, blank=True, null=True) city = models.CharField(max_length=50) postalCode = models.CharField(max_length=50) class Meta: verbose_name = "Address" verbose_name_plural = "Addresses" def __unicode__(self): return "{0},{1},{2},{3},{4},{5}".format(self.addressType, self.add1, self.add2, self.city, self.postalCode) class State(models.Model): name = models.CharField(max_length=50) abrev = models.CharField(max_length=50) class Meta: verbose_name = "State" verbose_name_plural = "States" def __unicode__(self): return "{0}".format(self.name) class Country(models.Model): name = models.CharField(max_length=50) class Meta: verbose_name = "Country" verbose_name_plural = "Countries" def __unicode__(self): return "{0}".format(self.Name) class ForeignAddress(Address): province = models.CharField(max_length=50) country = models.ForeignKey(Country) class Meta: verbose_name = "Foreign Address" verbose_name_plural = "Foreign Addresses" def __unicode__(self): return "{0},{1},{2},{3},{4},{5}".format(self.add1, self.add2, self.city, self.postalCode, self.province, self.country) class USAddress(Address): state = models.ForeignKey(State) class Meta: verbose_name = "Address" verbose_name_plural = "Addresses" def __unicode__(self): return "{0},{1},{2},{3},{4},{5}".format(self.addressType, self.add1, self.add2, self.city, self.state, self.postalCode) ***below is admin classes* class AddressTypeAdmin(admin.ModelAdmin): list_display = ('name', 'description', ) ordering = ('name', ) admin.site.register(AddressType, AddressTypeAdmin) class USAddressAdmin(admin.TabularInline): actions = ['delete_selected'] model = USAddress extra = 1 class ForeignAddressAdmin(admin.TabularInline): model = ForeignAddress extra = 1 class EntityAdmin(admin.ModelAdmin): inlines = [USAddressAdmin, ForeignAddressAdmin] list_display = ('fName', 'lName', 'entityType') ordering = ('lName', ) exclude = ['id'] admin.site.register(Entity, EntityAdmin) On Mon, Dec 15, 2014 at 3:54 AM, Daniel Roseman wrote: > > On Monday, 15 December 2014 00:53:05 UTC, Gerald Klein wrote: >> >> HI, I have a simple contact form with an address subform in the form of >> "TabularInline" where you can add an arbitrary amount of addresses, after I >> add a contact and an address and save, when I go to add a brand new contact >> and address, the address that I just added will be there and if I add the >> new contact it will over write not only the address but contact I added >> previously, so it is keeping the entire record and updating it. It won't >> fix itself until I stop the django server and start it again. Then I can do >> the whole thing again with a new record. >> >> I appreciate any that someone can give, thanks >> >> -- >> >&g
Re: Odd subform caching problem
if I remove the parens, when I submit to create the new entity is throws a validation error that does not specify the field that is wrong, "Please correct the error below." --jerry On Mon, Dec 15, 2014 at 6:20 AM, Daniel Roseman wrote: > > On Monday, 15 December 2014 11:04:13 UTC, Gerald Klein wrote: >> >> >> >> Daniel, >> I didn't include any code as I didn't do anything unusual but if you >> think that would help here it is.I was hoping that there was some ordinary >> theoretical basis for this as I didn't do anything custom really, aside >> from the id generation for the "Entity" class, which I generate the id >> manually much like an Oracle sequence object, I do this in order to >> facilitate the creation of relationships between arbitrary objects. >> > > But that "aside" is of course the entire problem. > > class Entity(models.Model): >> """ the fName field is also the company name field """ >> id = models.BigIntegerField(primary_key=True, unique=True, >> default=get_entity_id()) >> > > Leaving aside whatever reasons you have for doing this very odd thing, the > error is clear: you've called the get_entity_id function in the definition, > which means it is executed at first import time, so every instance of > Entity gets the same ID as its default. If you're using a function to > provide a default value, you must always pass the *callable*, like this: > > id = models.BigIntegerField(primary_key=True, unique=True, > default=get_entity_id) > > ie without the calling brackets. > > But I strongly recommend you don't do this. Whatever you mean by > "facilitating the creation of relationships between arbitrary objects", > there is almost certainly a better way to do it in Django. > -- > DR. > >> -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/312afeac-a3cf-479b-a544-7f6690732257%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/312afeac-a3cf-479b-a544-7f6690732257%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://t.senalcinco.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs1p1kmsW3N1NWP1p8b8gW3LPXXH56dyQSf6HGzv402?t=http%3A%2F%2Fgeraldklein.com%2F&si=5404167384858624&pi=12af2f4f-d854-4f2b-d29e-aa6ab7ce9884> geraldklein.wordpress.com <http://t.senalcinco.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs1p1kmsW3N1NWP1p8b8gW3LPXXH56dyQSf6HGzv402?t=http%3A%2F%2Fgeraldklein.wordpress.com%2F&si=5404167384858624&pi=12af2f4f-d854-4f2b-d29e-aa6ab7ce9884> j...@zognet.com 708-599-0352 <http://t.senalcinco.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs1p1kmsW3N1NWP1p8b8gW3LPXXH56dyQSf6HGzv402?t=&si=5404167384858624&pi=12af2f4f-d854-4f2b-d29e-aa6ab7ce9884> Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCxKta75iBgTcPT9ma2F4FtJ24xJwS9QgWgA1bXV4%2BDWqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: how to use apache instead of django_server
You need both apache and uwsgi or something like gunicorn, gunicorn is easier to configure. Basically your apache server will listen on 80 and them proxy python code to the app server On Mon, Dec 29, 2014 at 12:09 PM, phil...@bailey.st wrote: > > Hello there, > > if you are familiar with puppet you can take a look to this module. > > Best, > > Phillip > > > > On 29/12/14 17:26, th.gran...@free.fr wrote: > > Merci > > Thanks > > > > just another question > > > > when you don't use apache but the internal server of Django you start > > the command runserver for loging to django admin > > how to connect with apache? > > > > Many thanks > > > > T. > > > > Le lundi 29 décembre 2014 13:11:01 UTC+1, th.gr...@free.fr a écrit : > > > > Hello > > > > i'm a very new user of python and i'd luke to install Django > > i want to use apache server instead of the internal Django server. > > > > i read the documentation and installed wsgi > > but now i don't know how to connect Django admin via apache!! > > > > thanks for your help > > > > T > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/54A198D9.30501%40bailey.st. > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch, Gentoo I3, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCxGDi0w%3DOoSRwuXU1U48b-UreMT1Q1Qkk%2BftajLedFk9w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: register for mIRC
Yes Gerald Klein DBA geraldklein.com contac...@geraldklein.com geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch\Gentoo Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia On Mar 29, 2014 6:26 PM, "CS" wrote: > Hi everyone, > > I am new at python and I want to start to learn django. > I have small question, how can I register my ID to join #django in mIRC? > > CS > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/677c008b-7bfb-46cb-8185-4142f0883728%40googlegroups.com<https://groups.google.com/d/msgid/django-users/677c008b-7bfb-46cb-8185-4142f0883728%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCwYU7UzFhbajE6vKhd7PYU6HLOCyU-XB0s5eaGhpShkaQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Need idea how to keep data for multiple projects in one database
it sounds like you are on the right track, only thing is that you may want to take a look at data normalization in relational databases, this will give you some clues as to how best link the tables that you are describing On Fri, Apr 11, 2014 at 8:50 AM, DJ-Tom wrote: > Hi, > > I'm currently planning to port an old application that was used to > register participants for events to Django. > > The old app did not have any real database system, but was based on dBase > files. > > There was one global table where the basic information about each event > was stored (like event name, begin and end date and lots of other details). > > The actual data tables for each event where stored in a sub-folder of the > main directory like this: > > main > E001 > E002 > E003 > > This was quite convenient because creating a new event was just adding a > record to the main database and doing a copy of a directory. It was also > very easy to do a backup of the data. > > Since there is no way to create a new database for each new event directly > from the Django application, i'm wondering how this could be structured in > the most efficient way. > > I was thinking about creating an "events" table that holds the settings > for each event. > > All other tables, like "participants", "hotels", "packages", "payments" > etc. would then be linked to the event table via the events primary key. > > I plan to use Postgresql, so database performance should be no big issue, > as this is a low traffic site (only a few thousand request / day). > > What do you think? > > thanks for any input > Thomas > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/8a1f8019-0963-4af6-a71e-7b21b290c243%40googlegroups.com<https://groups.google.com/d/msgid/django-users/8a1f8019-0963-4af6-a71e-7b21b290c243%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCw1Ar3W8aHu6g9dP%3D-f7%2BhF%2BHd9sUwy6gZz2bRfGDJVMA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Need idea how to keep data for multiple projects in one database
That is where is the magic of relational data comes into play like I said look into the normalization of relational data tables this will give you clues as to exactly how to link the tables as to be able to isolate your data correctly Gerald Klein DBA geraldklein.com contac...@geraldklein.com geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch\Gentoo Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia On Apr 11, 2014 10:32 AM, "DJ-Tom" wrote: > > The only thing that might be a problem is that participants from all kind > of events are mixed in one huge table. > > When there is a need to do some kind of manual maintenance there is a > bigger potential of changing data that belongs to a different event, > compared to the old solution where each event had its own isolated tables. > > Thomas > > Am Freitag, 11. April 2014 15:57:43 UTC+2 schrieb Gerald Klein: >> >> it sounds like you are on the right track, only thing is that you may >> want to take a look at data normalization in relational databases, this >> will give you some clues as to how best link the tables that you are >> describing >> >> -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d44fe23d-ed2f-459f-badd-52c18cfe9c85%40googlegroups.com<https://groups.google.com/d/msgid/django-users/d44fe23d-ed2f-459f-badd-52c18cfe9c85%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCyRiP89JWwjbD7uEvp7JAG2y7AEJQtvXHSohSf4dgMiLg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Please help me out, I tried to get sync for whole day @@
'NAME': 'mysite'), the paran doesn't belong there On Sat, Apr 19, 2014 at 10:11 AM, Toan ComS wrote: > > > >> DATABASES = { >> 'default': { >> 'ENGINE': 'django.db.backends.sqlite3', >> 'NAME': 'mysite'), >> } >> } >> > > Is it wrong? > > -- > 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 django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/fb92204d-f2a7-4e40-87b8-e85c13a9bbaf%40googlegroups.com<https://groups.google.com/d/msgid/django-users/fb92204d-f2a7-4e40-87b8-e85c13a9bbaf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com <http://geraldklein.com/> geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- 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 django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP8NtCx8hNvjhxqx0G4fM8emXBjk%2BOrWhY7kbou_M1Pkswq71w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.