Awesome! Let me know how it works out for you. I'll probably be giving it a
try shortly as well. Thanks for sharing the good information.
On Mon, Oct 31, 2011 at 6:43 PM, andreas wrote:
> Hey Kurtis,
>
> thanks for your answer.
>
> I think hidden fields were used in the old implementation.
> At
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
>
> One way to fix it would be to get a l
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 well.
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
>
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)
{% ex
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
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 machine.
Another wou
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 new updates since I fi
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 u
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 (https://
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
django-u
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 incl
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 lette
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 director
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 V
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:
>>
>> Take a read throu
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 app_directo
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 dependen
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 websites?
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 = models.ManyToMa
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, **kwargs)
> >
> > IOError: request data read error
> >
>
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 October
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 something along the lines of:
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
--
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')
>>> cont
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:
> I'm trying to put toge
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
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 some
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 i
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 "...Python26\lib\site-packages\dj
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 admin?
--
You received thi
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 fun
32 matches
Mail list logo