Re: Can't add superuser

2011-10-31 Thread rihad
On Nov 1, 4:43 am, Karen Tracey wrote: > On Mon, Oct 31, 2011 at 8:43 AM, rihad wrote: > > Hi, I'm unable to add superuser. Running latest development trunk of > > Django, & Python 2.7 > > This has been reported:https://code.djangoproject.com/ticket/16017 > >

Re: Why are my two django objects of the same type behaving differently?

2011-10-31 Thread Gath
Somebody answered this http://stackoverflow.com/questions/7954474/why-are-my-two-django-objects-of-the-same-type-behaving-differently ... >>> s = '%build%' >>> content_query = content_class.objects.raw("Select * from pms_building where >>> name like %s",[s]) >>> type(content_query) Works

Re: Django - tutorial part 2 problem - Permission denied when attempting to save file

2011-10-31 Thread Nikolas Stevenson-Molnar
It looks like you don't have write permissions to the "base_site.html" file, or if the file doesn't exist, than you likely don't have proper permissions for the enclosing folder. What is the full path of the file you're attempting to edit? On 10/31/2011 6:30 PM, BillB1951 wrote: > Got this error

Django - tutorial part 2 problem - Permission denied when attempting to save file

2011-10-31 Thread BillB1951
Got this error Ran into this as part of the Django tutorial (part 2) very close to the bottom an attempt to change the page header/title. "There was an error attempting to save 'base_site.html':Permission denied" when trying to save the file below (copied from django source code) {%

Re: I can't activate the admin site

2011-10-31 Thread kenneth gonsalves
On Mon, 2011-10-31 at 17:31 +0200, Nick Apostolakis wrote: > On 31/10/2011 02:12 μμ, kenneth gonsalves wrote: > > > > but the indentation error seems to be in the django source code? > > Normally one does not fiddle with that. > > > > no I wouldn't expect the indentation problem to be located

Re: Can't add superuser

2011-10-31 Thread Karen Tracey
On Mon, Oct 31, 2011 at 8:43 AM, rihad wrote: > Hi, I'm unable to add superuser. Running latest development trunk of > Django, & Python 2.7 > > This has been reported: https://code.djangoproject.com/ticket/16017 One way to fix it would be to get a locale properly set on your

Re: Django tutorial hasn't received an update for 1.3

2011-10-31 Thread Russell Keith-Magee
On Mon, Oct 31, 2011 at 3:08 PM, Kevin wrote: > I keep checking the tutorial page for version 1.3 hoping to see some > new content related to the class-based views or at least some of the > promised future tutorials.  The tutorial still has the function-based > views, and no

Re: I can't activate the admin site

2011-10-31 Thread Juan Kepler
Thank you all. I'm using Django 1.3 I may need to rewrite the file sites.py I'm sure I did not change anything in that file. -- 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

Re: new formwizard - how to pass data between forms

2011-10-31 Thread andreas
Hey Kurtis, thanks for your answer. I think hidden fields were used in the old implementation. At least the release notes for 1.4 say: "It features a pluggable storage API and doesn’t require the wizard to pass around hidden fields for every previous step." But checking the example apps

Re: TabularInline "Add another" link not clickable

2011-10-31 Thread Lee
This CSS tweak fixed it: div.inline-group { display: inline-block; } -- 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

Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
Yeah. Tuples catch a lot of folks. Just because the empty tuple is spelled () . At the risk of telling you something that you already know: The app_directories_ loader should pull this stuff in for you, so long as django.contrib.admin is in INSTALLED_APPS. Usually TEMPLATE_DIRS is used to

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
On 10/31/2011 3:51 PM, Bill Freeman wrote: Try putting a comma at the end of the TEMPLATE_DIRS line. Hurrah, that did it. Thanks Mr. Freeman. Parentheses do not the tuple make. It's the comma. An expression surrounded by parentheses is just the expression, so you're trying to use each

Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
Try putting a comma at the end of the TEMPLATE_DIRS line. Parentheses do not the tuple make. It's the comma. An expression surrounded by parentheses is just the expression, so you're trying to use each letter of your setting as a directory, I believe. I take it you're not using the app

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
On 10/31/2011 2:49 PM, Bill Freeman wrote: > I think that you have too many "admin"s. Try: > > TEMPLATE_DIRS=('C:/Python26/Lib/site-packages/django/contrib/admin/templates') Thanks for the suggestion. I don't see much difference on my system here though... C:\Program Files (x86)\Microsoft

Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
I think that you have too many "admin"s. Try: TEMPLATE_DIRS=('C:/Python26/Lib/site-packages/django/contrib/admin/templates') On Mon, Oct 31, 2011 at 3:30 PM, Stefan Lisowski wrote: > I appreciate the reply SmileyChris - > > On 10/30/2011 12:41 PM, SmileyChris wrote:

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
I appreciate the reply SmileyChris - On 10/30/2011 12:41 PM, SmileyChris wrote: Take a read through this section of the docs: https://docs.djangoproject.com/en/1.3/ref/templates/api/#loading-templates Yes, that's what I was reading. Specifically, those templates are found via the

Re: Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Kurtis Mullins
Sure you could do that. It's called using XML Transformations (XSLT), Javascript Templatating Engines, or a number of other approaches. Django does this with its Template Engine. The reason this isn't completely ran on the Client-Side is because it would be slower, difficult to cache, and

Re: Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Timmy O'Mahony
The more I think about this the more I realize that what I'm talking about IS exactly a REST api. If I write a phone app, I will code all the presentation layer locally on the phone (client-side) and use json/xml to dynamically fetch data from the server. Why isn't this the same for

Dynamic URLs or creating querysets from your URL paths.

2011-10-31 Thread Timmy O'Mahony
I'm creating a CMS using django-cms and some custom plugins. Everytime I do this I get sick or writing the same views time and time again. Quick example, I have a *Project* model that can have one or more * Categories*, *Tags* and *Clients:* * * class Project(...) categories =

Re: Login problems under heavy load

2011-10-31 Thread Malcolm Box
On 24 October 2011 12:01, Tom Evans wrote: > On Fri, Oct 21, 2011 at 6:15 PM, Alpesh Gajbe > wrote: > > > > File "/usr/local/lib/python2.6/dist-packages/django/http/__init__.py", > > line 296, in read > > return self._stream.read(*args,

Re: Django tutorial hasn't received an update for 1.3

2011-10-31 Thread Malcolm Box
Hi, If you've figured this stuff out, how about writing some of the tutorial yourself and submitting a patch? Trying to teach someone else is the best way to figure out if you really understand something, and you'd be contributing to keeping the Django documentation great. Malcolm On 31

Re: variables in a dict in a template

2011-10-31 Thread Bill Freeman
On Mon, Oct 31, 2011 at 2:36 AM, kenneth gonsalves wrote: > On Sun, 2011-10-30 at 12:00 -0400, Kurtis Mullins wrote: >> One way to go about it is to create multiple, nested objects. For >> example: >> >> Score - Rounds Holes >> >> Then in your template, you'd do

Re: I can't activate the admin site

2011-10-31 Thread Nick Apostolakis
On 31/10/2011 02:12 μμ, kenneth gonsalves wrote: but the indentation error seems to be in the django source code? Normally one does not fiddle with that. no I wouldn't expect the indentation problem to be located in django code. unless you are using an unstable version or something

Why are my two django objects of the same type behaving differently?

2011-10-31 Thread Gath
Help! I have two objects that i have created using different techniques in django; >>> from django.contrib.contenttypes.models import ContentType >>> from myproject.models import Building Method A >>> content_type = ContentType.objects.get(app_label='myproject', >>> model='Building') >>>

Re: django-easyfilters for filtering data in a view

2011-10-31 Thread Alan
If anyone else is having trouble here, my problem was in passing the template when loaded from an external file--specifying the template inline worked fine for me. The context variables are provided in the documentation. Good luck -alan On Oct 30, 9:21 pm, Alan wrote:

Can't add superuser

2011-10-31 Thread rihad
Hi, I'm unable to add superuser. Running latest development trunk of Django, & Python 2.7 You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes Traceback (most recent call last): File "./manage.py", line 9, in

Re: I can't activate the admin site

2011-10-31 Thread Kurtis Mullins
hmm, I suspect that the part of the error message you posted *may* not be completely clear on where the indentation problem is actually occurring. Anyways, if you want to be sure then I would try using Django 1.3 since it's thoroughly tested. Im' still half asleep so I could be overlooking

Re: I can't activate the admin site

2011-10-31 Thread kenneth gonsalves
On Mon, 2011-10-31 at 05:25 +0200, Nick Apostolakis wrote: > Since it complains about > > IndentationError: unexpected indent" > > > I would guess that you have typed an extra space or tab somewhere, > that > ruins the identation. > Since you use an IDE it should be easy to find it. but the

Re: I can't activate the admin site

2011-10-31 Thread Nick Apostolakis
On 31/10/2011 03:42 πμ, Juan Kepler wrote: I've done what the "Writing your first Django app, part 1" said. It works. But in the part 2: *I add "django.contrib.admin" to my INSTALLED_APPS setting. *I run python manage.py syncdb. And I have this error: "File

Re: django ajax select

2011-10-31 Thread Venkatraman S
On Mon, Oct 31, 2011 at 10:07 AM, pradnya wrote: > i m using ajax select plugin in my project which i got from > https://github.com/crucialfelix/django-ajax-selects . > now i want to know how can i use it in django admin's tabular inline ? > > What you want to do in

Django tutorial hasn't received an update for 1.3

2011-10-31 Thread Kevin
I keep checking the tutorial page for version 1.3 hoping to see some new content related to the class-based views or at least some of the promised future tutorials. The tutorial still has the function-based views, and no new updates since I first went through it on the 1.2 release. I know the

Re: variables in a dict in a template

2011-10-31 Thread kenneth gonsalves
On Sun, 2011-10-30 at 12:00 -0400, Kurtis Mullins wrote: > One way to go about it is to create multiple, nested objects. For > example: > > Score - Rounds Holes > > Then in your template, you'd do something along the lines of: > > {% for round in game.rounds %} {% for hole in