On Wednesday 26 March 2008 17:25:18 Amit Ramon wrote:
> You can do that easily enough without django...
> one way is to do:
> mysql -u -p < file.sql
>
> the other is to go into mysql and there do:
> \. file.sql
>
> You can open a mysql shell with:
> manage.py dbshell
>
>
I prefer the second way b
Chirolo schrieb:
> Hi again.
> I tried what Thomas suggested, but I still get the following error:
> NameError: name 'pwdtuple' is not defined
>
>
I am sorry, one line was missing:
import os
import pwd
pwdtuple=pwd.getpwuid(os.getuid())
USER=pwdtuple[0]
HOME=pwdtuple[5]
--
Thomas Guettler,
On 3/26/08, Karen Tracey <[EMAIL PROTECTED]> wrote:
> you have told MySQL that the data is utf8-encoded. I believe there is a way
> (described in the MySQL doc page I cited above) to globally change your
> MySQL config so it will expect/supply utf8 instead of latin1, so you might
> want to look
There's been active discussion recently on the developers list, which
is generally the place to look for information about Django
development...
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received t
On Thu, Mar 27, 2008 at 3:52 PM, Carl Karsten <[EMAIL PROTECTED]> wrote:
>
> same code on both boxes:
>
> [EMAIL PROTECTED]:~/ridgemoor$ ../django/bin/django-admin.py dumpdata
> >ridgemoor.json
>
> [EMAIL PROTECTED]:~/ridgemoor$ django-admin.py loaddata ridgemoor.json
> Installing json fixtu
On Thu, Mar 27, 2008 at 3:52 PM, django <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I want to use {[candidate.vote_set.filter(vote='TU').count()}} in my
> template but not able to do it.
>
> Its says Templatesyntaxerror...
> I want to know how I can use the above exp in my template??
You can't. Dja
On Thu, Mar 27, 2008 at 1:12 AM, django <[EMAIL PROTECTED]> wrote:
> How do i convert {{ candidate.vote_set.filter(vote='TU').count()}} in
> my view_candidate to work it properly
> Right now it give me templatesyntax error
Quoting the "Philosophy" section at the top of this page:
http://
* Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-27 08:27 +0100]:
>
> On Wednesday 26 March 2008 17:25:18 Amit Ramon wrote:
> > You can do that easily enough without django...
> > one way is to do:
> > mysql -u -p < file.sql
> >
> > the other is to go into mysql and there do:
> > \. file.sq
Thanks a lot..
On Mar 27, 2:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Alternatively you can create a templatetag to accomplish this.
>
> On Mar 27, 3:14 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
> wrote:
>
> > On Thu, Mar 27, 2008 at 3:52 PM, django <[EMAIL PROTECTED]> wrote:
>
Thanks ..
On Mar 27, 1:15 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 1:12 AM, django <[EMAIL PROTECTED]> wrote:
> > How do i convert {{ candidate.vote_set.filter(vote='TU').count()}} in
> > my view_candidate to work it properly
> > Right now it give me templa
Alternatively you can create a templatetag to accomplish this.
On Mar 27, 3:14 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Thu, Mar 27, 2008 at 3:52 PM, django <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I want to use {[candidate.vote_set.filter(vote='TU').count()}} in my
> > templa
Not quite sure, but IMHO you need to use a ModelChoiceField instead of
a ChoiceField in your formfield_for_dbfield().
http://www.djangoproject.com/documentation/newforms/#fields-which-handle-relationships
pe
On 27 Mrz., 06:21, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was busy doing other t
That was the solution. I removed the symmetrical=False and also the
unique=True and now it works.
many thanks for your help, Karen!
On 26 Mrz., 22:04, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 25, 2008 at 9:08 AM, tom <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I try to add some dat
Hey guys,
I'm starting work on a project and for now, won't be using a db with
it. Instead, I'll be using a library which fetches all the data I need
from a local SVN store. I was wondering where should I access this
library from - the model (models.py) or the view (views.py)?? I don't
know if th
YOUR CHANCE TO WATCH LATEST FLICKS IN FASHION WORLD.
KNOW ABOUT DESIGNERS .THEIR ACTIVITES
COME WATCH THEM AT:
http://www.indian-fashionworld.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
hi guys.. did u know the money making secrets.
we will give the oppertunity if u are interesting in online jobs.
if u joined with us then earn $400 per day..
just work in 1 hour per daylog in our site
www.jobsforyouguys.blogspot.com
--~--~-~--~--
Have a look at
http://code.google.com/p/pypaypal/
Be careful with the Name Value Pair API, at the moment you must be a
US or UK paypal customer to use it!
On Mar 27, 3:54 am, e <[EMAIL PROTECTED]> wrote:
> Is there a tutorial or stand-alone django app somewhere that shows how
> to make a PayPal p
EDIT: After writing all of the stuff below, I got it working, at least
somewhat. I usually used sudo to run the dev server because I wanted
to run it on port 80 (nevermind why, long explanation). Doing that
still produces the same error, but if I run it without the sudo, it
works. I have no idea w
I hadn't seen mention of this so I thought I'd give everyone here a heads
up. In the April edition of Wired, they have their normal Expired, Tired and
Wired lists (p. 44). Check this one out:
Expired: ASP.NET
Tired: PHP
Wired: Django
Pretty cool. Yet more positive momentum for a great framework.
good question.. I don't honestly know if you can configure django's models
to reference plain-text, or whatever this library-of-data is.
most likely you'll just have to disable database use and write your own
access routines.
On Thu, Mar 27, 2008 at 6:09 AM, Rishabh Manocha <[EMAIL PROTECTED]> wr
I'm not sure I understand how flatpages can help. I'm trying to limit
what options show up in a select box in the admin interface so that if
I have a Location on site A, when I go to select what Neighborhood
it's in I'm only presented with the Neighborhoods that are also
associated with site A and
So. If you aren't using a relational db, maybe you don't really want
to be using subclasses of django models to pull your data out of SVN.
My initial thought would be that you should do something like write an
abstract class that has the necessary methods for providing the CRUD
equivalent actions
As promised, Im going to release some tools that make it easier to
integrate client and server-side javascript validation and utilities
for newforms. To do this though, I first need to come up with a list
of what is needed. Here is my current list:
- Validation per-field via client-side and serve
I can take credit for turning Chris Anderson (the Editor of Wired) on
to Django. We were discussing other things a while ago (diydrones.com)
and I mentioned that we were doing a project with GeoDjango. He said
"what is django", and I proceeded to explain and his response was
basically "Ah! RoR, bu
> EDIT: After writing all of the stuff below, I got it working, at least
> somewhat. I usually used sudo to run the dev server because I wanted
> to run it on port 80 (nevermind why, long explanation). Doing that
> still produces the same error, but if I run it without the sudo, it
> works. I have
Hi,
I use unittest framework and recently i've faced strange issue. I use
asserRaises() method to ensure that my model methods raises
appropriate exceptions. And methods raises, but asserRaises() doesn't
catch them, therefore i see an error with following traceback
==
Hi All,
I use django 0.96.1 on CentOS 4 box (python 2.3.4). When use __str__()
in model definitions everything is fine, but when change it to
__unicode__() I don't see it working (e.g. in admin interface there is
a default output). Does 0.96.1 support __unicode__() or I should move
to SVN versio
And here is a bit of my testcase
[code]
self.assertRaises(RevisionNotStarted,
self.documents[0].fix_revision())
[/code]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
Let's break down exactly what you are trying to accomplish. You have a
model that you only want to be served only on a certain site. I
thought that flatpages was using a manager to figure this out, but if
actually applies a filter when flatpages is being fallen back on.
You can create a manager q
David,
This would be really cool because right now it is still a bit of a
pain to do this for each form. A tool could really save some time. One
thing that keeps coming up that I need javascript to check for is for
file uploads checking that the file is appropriate both in extension
and size. Als
In another thread (http://groups.google.com/group/django-users/
browse_thread/thread/962cfdf7609839eb/),
On Mar 23, 11:48 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> For example, using prefork MPM because PHP is not thread safe in
> conjunction with Python web applications in embedded mode
I was planning on using mootools, but it could just as easily be done
with jQuery or no libraries (as all we need are a few basic things..
DOM selection and AJAX, the rest is cake)
On Mar 27, 7:58 am, Michael <[EMAIL PROTECTED]> wrote:
> David,
>
> This would be really cool because right now it i
I was just messing around with my sites urlconf to keep it organized
and manage clean things up a bit. I make use of generic views quite a
bit and they really save me a lot of time. One of the things that I
noticed however as I was trying to combine a lot of "info_dicts" was
that the generic views
Free Call and SMS (World Wide) http://www.freecall2phone.blogspot.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 unsubs
I cannot figure out what this message might mean; can anybody help?:
OperationError at /admin/balie/lid
no such column: balie_lid.n
Request method: GET
Request URL: http://localhost:8000/admin/balie/lid/
Exception Type: OperationalError
Exception Value: no such column: balie_lid.n
Exception Loca
I got this error when I added a field to my models, ran sycndb.
I believe I got this error because syncdb failed to actually add the correct
column to the database to reflect the changes I had made to my models.
I believe this is a bug in syncdb, but maybe someone more experienced can
show me wha
Specifically, you might look at http://www.djangosnippets.org/snippets/9/.
This allows you to do something like:
{% expr candidate.vote_set.filter(vote='TU').count() as count %}
and now {{count}} can be used in the current context.
If you find yourself yearning for Total Python Power in yo
That's what I had done: deleted the database and run syncdb again - so
I was pretty sure that the database file reflected the class in my
models.py. I entered one record manually through the admin interface
and got the error when I clicked 'Change' for this table. The first
field in the table shou
> I got this error when I added a field to my models, ran sycndb.
>
> I believe I got this error because syncdb failed to actually add the
> correct column to the database to reflect the changes I had made to
> my models.
>
> I believe this is a bug in syncdb, but maybe someone more
> experi
This should help:
http://www.b-list.org/weblog/2006/nov/16/django-tips-get-most-out-generic-views/
Say you've got this in "yourproj.yourapp.views" (assuming there's a
ForeignKey on Thing2):
from django.views.generic import date_based
from yourproj.yourapp.models import Thing1
from yourproj.your
I guess by "bug" I meant that
synchronizing, by its nature involves making two disparate things congruent.
syncdb does not do that.
but ok, thanks for the reply, I'm glad its a documented "feature" at
least...
On Thu, Mar 27, 2008 at 10:37 AM, bavel <[EMAIL PROTECTED]> wrote:
>
> That's what I
I deleted the database again - run syncdb again - clicked 'Change' and
bingo: same error message! No date entered, this time. Only this one
table in the database... Is this typical for sqlite?
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Tourneur Henry-Nicolas schrieb:
> Hello,
>
> At the installation stage of the software (Django bases, of course) I'm
> developing, I have to insert data in a database. Is there any easy way to
> tell django to execute the SQL directives contained in a .sql file ?
>
> I tried using manage.py but
> I guess by "bug" I meant that
>
> synchronizing, by its nature involves making two disparate things
> congruent.
>
> syncdb does not do that.
Well, it does, up to the part that 'it' (the writers) feels confident
about: it synchronizes the database globally with newly added models;
indeed
I don't mean to be overly critical, its not a bad application, but if its
marketed to 'perfectionists' then I guess you have to expect people to be
demanding =)
On Thu, Mar 27, 2008 at 10:54 AM, Evert Rol <[EMAIL PROTECTED]> wrote:
>
> > I guess by "bug" I meant that
> >
> > synchronizing, by its
> I deleted the database again - run syncdb again - clicked 'Change' and
> bingo: same error message! No date entered, this time. Only this one
> table in the database... Is this typical for sqlite?
I've never experienced anything like this with sqlite.
What does your model look like; there may
On Fri, Mar 21, 2008 at 2:37 PM, Greg <[EMAIL PROTECTED]> wrote:
> I would like to store model schema and URL regexes in the database and
> be able to retrieve them from the database and use them in an app.
> For example, let's say I create a simple poll model and store that
> schema in the da
Hi David
I was thinking about something like that, too. How do you intend to
handle things on the server-side? How is the JS supposed to
generically get the data?
I already implemented a server side app, which makes all content types
available via a REST conform API using a hacked-up django-rest
> I don't mean to be overly critical, its not a bad application, but
> if its marketed to 'perfectionists' then I guess you have to expect
> people to be demanding =)
Yup. But in their defence: the software comes completely free, and
does work mostly out of the box.
Anyway, perhaps this is
On Thu, Mar 27, 2008 at 10:47 AM, Legioneer <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I use django 0.96.1 on CentOS 4 box (python 2.3.4). When use __str__()
> in model definitions everything is fine, but when change it to
> __unicode__() I don't see it working (e.g. in admin interface there is
>
On Mar 27, 12:15 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> The unicode branch was merged after the 0.96 release, thus 9.96.1 does not
> include its benefits...
I meant 0.96.1 of course.
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Thanks, Evert! I could check now that the table is correct - and, with
some experimenting, I found the mistake I had made too: I had, in
models.py, in class Admin, entered "ordering = ('nummer')" instead of
"ordering = ['nummer']".
Perhaps somebody can explain why list_display and list_filter req
> Thanks, Evert! I could check now that the table is correct - and, with
> some experimenting, I found the mistake I had made too: I had, in
> models.py, in class Admin, entered "ordering = ('nummer')" instead of
> "ordering = ['nummer']".
>
> Perhaps somebody can explain why list_display and list
>> Thanks, Evert! I could check now that the table is correct - and,
>> with
>> some experimenting, I found the mistake I had made too: I had, in
>> models.py, in class Admin, entered "ordering = ('nummer')" instead of
>> "ordering = ['nummer']".
>>
>> Perhaps somebody can explain why list_displ
Hi, sorry for the delay
On Mar 16, 2:45 pm, prz <[EMAIL PROTECTED]> wrote:
> are you sure you have django directory _IN_
>
> /usr/lib/python2.4/site-packages/django
Yes, I have the django directory
> or is it only
>
> /usr/lib/python2.4/site-packages/django/core/handlers/modpython.py
--
I have
I think it's possible, using python decorators and django midleware,
implement something like AJAX.NET in the way of sending python objects
to the page via JSON using a python-JSON translator.
And I'm also looking forward for the tool.
--~--~-~--~~~---~--~~
You rec
I think it's possible, using python decorators and django midleware,
implement something like AJAX.NET in the way of sending python objects
to the page via JSON using a python-JSON translator. And I'm also
looking forward for the tool.
--~--~-~--~~~---~--~~
You re
I guess I didn't explain myself well enough.
90% of the views on my site don't need anything special being passed
to a wrapper view function or anything. In my "info_dict" I typically
define only the items that stretch across the generic views of the
entire model, typically queryset and date_fiel
Look.
If your python interpreter can't import django, you installed it wrong.
C'est tres facil.
the django module should be installed to the system and should be importable
from anywhere. Setting your PYTHON_PATH is, at best, a hack, and at worst,
will cause massive problems (as hacks do) when an
No no, the model will be served on all sites. Individual instances
will only be on a single site. So each site will have it's own set of
neighborhoods and locations. It's also possible that a neighborhood or
location will be on multiple sites.
The problem is that when dealing with a location in t
My application has the following models: Researcher, Program and
Publication.
Each Researcher has 0 or more Programs as a ManyToManyField, and each
Program has 0 or more Publications also as a ManyToManyField.
Publication has a 'type' attribute which is a CharField, and has
choices: Book, Article
> If your python interpreter can't import django, you installed it
> wrong.
> C'est tres facil.
One of the previous post in this thread mentions the development
server works fine, so django can be imported from the shell
apparently. But testing that will never hurt; there may happen to be a
but this is the error message.
>ImportError: No module named django
shouldn't that mean that python can't find the django module? regardless of
if he has further issues, modules within modules or anything, if python
can't find the initial django module that means a bad install?
--~--~-
台中縣市兼職小姐外送
女大學生 專櫃小姐 幼教師 護士 模特兒 會計各行各業兼職皆有
精挑細選.年紀都約在18~23歲 (但未成年的是不做的喔!)
由於都是兼職的台灣小姐.所以大都不能太晚.所以想找的朋友請先約好
台中縣市各賓館或汽車旅館皆可送達
價格優惠~安全實在
錢小姐 0987-630-487
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django u
I doubt it
2008/3/27 辣妹 <[EMAIL PROTECTED]>:
> 台中縣市兼職小姐外送
>
> 女大學生 專櫃小姐 幼教師 護士 模特兒 會計各行各業兼職皆有
>
> 精挑細選.年紀都約在18~23歲 (但未成年的是不做的喔!)
>
> 由於都是兼職的台灣小姐.所以大都不能太晚.所以想找的朋友請先約好
>
> 台中縣市各賓館或汽車旅館皆可送達
>
> 價格優惠~安全實在
>
> 錢小姐 0987-630-487
> >
>
--~--~-~--~~~---~--~~
You receiv
Considering that BlobField is not supported, what are you using to
store binary data. Recipes, snippets ..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
Well, books can be redefined as:
def books(self):
progs = self.programs.all()
return sum([prog.publications.all().filter(type=u'Book').count()
for prog in progs])
and likewise for the other methods.
On Mar 27, 1:27 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote:
> My application has t
Also see what I said towards end of:
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
as to why.
I might clarify later and address your specific questions when have
time.
Graham
Peter Rowell wrote:
> In another thread (http://groups.google.com/group/django-users/
> browse_thread/
Hi all,
I want so see the SQL that the Django ORM is executing behind the
scenes. I know that SQLObject has this but I wanted to see if there is
some similar functionality in Django. Is it?
Thanks,
Angel
--~--~-~--~~~---~--~~
You received this message because you
Hello, as Django's handling of the issue:
* Generate reports PDF
* Graphics statistics (bars, cakes ,...)
Thanks
Percy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
I want to have char fields (db storage reason) instead of varchar
how to force that in the models.py ??
django seems to create only varchar
thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi,
In the project I am currently working on, we create hundred's of
tables during runtime.
Django book says every table requires a model class to be created to
access the table. Unfortunately, this solution doesn't fit our
project.
Creating model class for each and every db table is mandatory?
I'm pretty new to django and I was wondering if it is possible to do
an %include/ssi tag that can hook into the URLconf and views. Looking
at the source it doesn't seem possible.
I've written a bunch of views and now I'd like to mash them together.
I know I can use template inheritance to define
http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running
or
you can make a function like this:
In [19]: def show_sql(query):
: clauses = query._get_sql_clause()
: return 'SELECT %s %s' % (', '.join(clauses[0]),
clauses[1])
When I enable CacheMiddleware for site caching (using memcached as my
cache backend), I notice that if the page requires opening a file on
the file system or over http, that opening the file won't work, and
causes problems, the most typical being "ValueError: I/O operation on
closed file".
I also
wouldn't getting the queries from connection.queries be abetter
approach?
On Mar 28, 1:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw...
>
> or
>
> you can make a function like this:
>
> In [19]: def show_sql(query):
>
On Mar 27, 7:31 pm, shabda <[EMAIL PROTECTED]> wrote:
> Considering that BlobField is not supported, what are you using to
> store binary data. Recipes, snippets ..
But these aren't binary data; they're text, so why not use a
TextField?
--~--~-~--~~~---~--~~
You
Django handles it as well as Python.
Here are some resources I would suggest checking out:
report lab: http://www.reportlab.org/index.html
google charts: http://toys.jacobian.org/hg/googlecharts/ and
http://toys.jacobian.org/hg/googlecharts/raw-file/tip/docs/examples.html(examples)
django-gra
It depends, thats better if you want to actively see what queries are
being run, this is better if you want to see what SQL a specific query
executes.
On Mar 27, 3:24 pm, shabda <[EMAIL PROTECTED]> wrote:
> wouldn't getting the queries from connection.queries be abetter
> approach?
>
> On Mar 28,
Hi Brandon,
>
> I would paste in some code examples, but this project is several
> hundred lines long, and there are several incidences where I open
> files that is conflicting with the cache middleware.
Not knowing how you have your cache setup (anonymous, all views, low-
level), it's hard to t
Hi,
On Mar 27, 4:01 pm, qwerty <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want so see the SQL that the Django ORM is executing behind the
> scenes. I know that SQLObject has this but I wanted to see if there is
> some similar functionality in Django. Is it?
See:
http://www.djangoproject.com/doc
>
> > The unicode branch was merged after the 0.96 release, thus 9.96.1 does not
> > include its benefits...
>
> I meant 0.96.1 of course.
thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
On 27 Mar 2008, at 19:31, shabda wrote:
>
> Considering that BlobField is not supported, what are you using to
> store binary data. Recipes, snippets ..
In all cases, whether it's a binary file uploaded by the user or a
binary file generated by the application, I store it in a file on disk
a
Hi Lavanya,
> In the project I am currently working on, we create hundred's of
> tables during runtime.
Have you considered re-architecting your application in a way that
doesn't require creation of tables at runtime? I am curious of your
usecase scenarios that resulted in this design choice.
>
2008/3/26, Juanjo Conti <[EMAIL PROTECTED]>:
> form_for_instance
>
> Your example will be:
>
>
> def edit(request, u_id):
> usuario = Usuario.objects.get(id=u_id)
>
> form = form_for_instance(usuario)()
>
> return render_to_response('usuario/usuarioEdit.html', {'form':form})
hi
I appreciate the help Rajesh,
I haven't added any special settings for the cachemiddleware, I just
placed 'django.middleware.cache.CacheMiddleware' in my middleware
classes and that's it. As far as the low-level caching that I have
written into my code using the "from django.core.cache import cac
On Thu, Mar 27, 2008 at 3:13 PM, Michael Wieher <[EMAIL PROTECTED]>
wrote:
> but this is the error message.
>
> >ImportError: No module named django
>
> shouldn't that mean that python can't find the django module? regardless
> of if he has further issues, modules within modules or anything, if p
Now for some more comments.
On Mar 28, 2:01 am, Peter Rowell <[EMAIL PROTECTED]> wrote:
> In another thread (http://groups.google.com/group/django-users/
> browse_thread/thread/962cfdf7609839eb/),
>
> On Mar 23, 11:48 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
> > For example, using pref
Brandon,
It appears that the Cache Middleware does not read the content from
the file before caching the response [1]. I'm not sure if this is a
bug or not...though I'd probably lean towards it being a bug. (Do we
not cache middleware to *always* evaluate a file object before caching
the response
Hi,
I am in the process of adding more information to the user, managed
via django.contrib.auth. I am getting an error in the admin
interface, when trying to add a profile to a given user. First time
the interface crashes, but the profile gets added, so the next time I
try to add the same profil
On Mar 28, 9:32 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 27, 2008 at 3:13 PM, Michael Wieher <[EMAIL PROTECTED]>
> wrote:
>
> > but this is the error message.
>
> > >ImportError: No module named django
>
> > shouldn't that mean that python can't find the django module? regardle
Slayer_X wrote:
> # vim /etc/httpd/conf/httpd.conf
>
> PythonPath "['/usr/lib/python2.4/site-packages/django'] +
> sys.path"
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> PythonDebug On
> SetEnv DJANGO_SETTINGS_MODULE ripsol.settings
>
Try this
Hi djangoers,
I'm learning Django by setting up a blog per instructions here (combined
with code from djangoproject.com svn):
http://www.rossp.org/blog/2006/jun/08/django-blog-redux/
Most things work, except I enter raw html when posting the blog through
the admin interface, and the raw html
On Mar 27, 3:23 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
>
> It will run automatically if you are using trunk Django, but not if
> you are using the 0.96 release. If you are using 0.96, and can't
> update to trunk, you will need to run ./manage.py sequencereset after
> loading a fixtur
You're being affected by a relatively new feature: Autoescaping HTML. You
can find more information at this link:
http://www.djangoproject.com/documentation/templates/#automatic-html-escaping
-justin
On Thu, Mar 27, 2008 at 7:32 PM, Floyd Arguello <[EMAIL PROTECTED]>
wrote:
>
> Hi djangoers,
>
I also feel obligated to mention that you don't have to use HTML. If you
prefer some sort of markup, look here:
http://code.djangoproject.com/wiki/UsingMarkup
-justin
On Thu, Mar 27, 2008 at 7:55 PM, Justin Lilly <[EMAIL PROTECTED]> wrote:
> You're being affected by a relatively new feature: Aut
On Thu, Mar 27, 2008 at 6:45 PM, Francisco Benavides <
[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am in the process of adding more information to the user, managed
> via django.contrib.auth. I am getting an error in the admin
> interface, when trying to add a profile to a given user. First time
> th
I'm not too familiar with .NET, but with middleware and decorators it
would be possible, there would just need to be some awareness. One
thing we had done on Curse, was wrap the jQuery base AJAX call, and
our login_required methods. If a JS method was sent in (all JS methods
were to /js/ or had js
i have a system i created a while back in php that allows fans to come
to the site after a soccer match and rate each player on a scale of
1-10 based on their performance. it displays the player's average for
every, the entire season, etc.
the way that it's structured now is using a mysql databas
anyone know how to put javascript into django templete? let's say i have a
field "color" in the models.py, i want django templete shows a color picker
(using javascript) in the templete, so user can pick the color.
--
View this message in context:
http://www.nabble.com/javascript-in-django-tp16
1 - 100 of 118 matches
Mail list logo