On Tuesday 17 Jan 2006 9:04 pm, Bryan Murdock wrote:
> OK, so as a database dummy, how exactly is this done? Do I pipe
> the output of 'manage.py sqlreset myapp' to psql, or is there a
> less drastic way since I know I've only changed this one thing?
> I don't have any real data in the database
On Wednesday 18 Jan 2006 12:06 pm, Jeroen Ruigrok van der Werven
wrote:
> > On my local machine, firefox misbihaves when favicon is
> > missing, yielding error 500.
>
> That's odd, since that would/should never yield a 500 but a 404,
> since the favicon is just another URL request.
must be 500 a
On 1/17/06, iGL <[EMAIL PROTECTED]> wrote:
> On my local machine, firefox misbihaves when favicon is missing,
> yielding error 500.
That's odd, since that would/should never yield a 500 but a 404, since
the favicon is just another URL request.
You sure the 500 is not the CGI interface going haywi
哦, 要去国外招人,good。2006/1/18, Dominic <[EMAIL PROTECTED]>:
Ni hao" everyone,Do you fancy getting in the fast lane and putting your talents to usein modern Beijing, rapidly becoming a high-tech hub? Are you lured byChina's exotics, its breathtaking cultural heritage, its exquisite (and
sometimes "surpri
Is it possible to somehow rename or assign one variable to another in
a template? All the generic views provide an object_list, except
archive_index which provides latest. I'm trying to write a generic
template that loops through the object_list (or latest) for all the
date-based generic views,
Ni hao" everyone,
Do you fancy getting in the fast lane and putting your talents to use
in modern Beijing, rapidly becoming a high-tech hub? Are you lured by
China's exotics, its breathtaking cultural heritage, its exquisite (and
sometimes "surprising" ;) cuisines and the possibility of
learning/
I think there are a few ways of doing this in previous messages, but
here's what has worked for me, using a custom context processor.
In settings, I add whatever custom variables I want, including this:
APP_BASE = "http://www.example.com/";
I have an app called home, and in the views.py I put t
On Tue, 17 Jan 2006 14:02:24 - Alice wrote:
> Where would I put extra processors? in /myproject/processors.py ?
> Processors are global and not an app specific one ... so where are
> others putting theirs? Just after a bit of django etiquette...
They are pretty new, so you can be the trend s
> and add this line to your virtual host section
Alias /media/ "/work/django/media/"
FYI, the '/media/' comes from the ADMIN_MEDIA_PREFIX in your
settings.py file. If it is different, change the Alias to match it.
-rob
On 1/17/06, David S. <[EMAIL PROTECTED]> wrote:
> I have some custom validation I want only on adding a record, not changing it.
> Is there a way to qualify my _manipulator_validate_FOO() method or to find out
> from within it if it is an add or change? I know I can create a custom
> manipulator
On 1/18/06, David S. <[EMAIL PROTECTED]> wrote:
>
> I have some custom validation I want only on adding a record, not changing it.
> Is there a way to qualify my _manipulator_validate_FOO() method or to find out
> from within it if it is an add or change? I know I can create a custom
> manipulato
I have some custom validation I want only on adding a record, not changing it.
Is there a way to qualify my _manipulator_validate_FOO() method or to find out
from within it if it is an add or change? I know I can create a custom
manipulator to use from my own views, but I would like the admin vi
On my local machine, firefox misbihaves when favicon is missing,
yielding error 500.
I'm in a hurry, and I'll have to double check tomorrow, but..
It seems to me that release 0.91 broke somewhat OneToOne relations.
The example (Places and Restaurants), in the model examples
documentation, doesn't run anymore (place object does not have a
get_restaurant method).
Admin interfaces m
"Unfortunately", I use IE.So it is not my problem.
Is it nescessary to have some standard files in the directory, e.g.
robots.txt ?
I read that the missing file can cause 500 internal server error.Is it
true?
rgds,
L.
I'd like to have a solution to this problem too.
My specific problem is that I have a bunch of sites in development on
my laptop:
http://localhost/coolsite/
http://localhost/boringsite/
http://localhost/newhomepage/
And these then get deployed to production servers:
On 1/17/06, scum <[EMAIL PROTECTED]> wrote:
> Method 1 works with keywords that want lists. For example.. the order
> by clause works in method 1 but not in method 2. (?order_by=city)
>
> Method 2 works with keywords that do not require a list. For example,
> the limit and offset keywords work i
I'm having partial success with the code given here. Let me clarify
the two methods I am using.
Method 1:
leads.get_list(**request.GET)
Method 2:
params = dict(request.GET.items())
milestones.get_values(**params)
Method 1 works with keywords that want lists. For example.. the order
by clause
On 1/17/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 17 Jan 2006 4:45 pm, Julio Nobrega wrote:
> > Restriction *is* on the database too, when you run "manage.py
> > startsql" (the command that outputs the CREATE TABLEs) you can
> > see the UNIQUE being added. But Bryan is updati
since my server is down again, i can´t verify the code.
anyway, thanks everybody for your help.
patrick
Am 17.01.2006 um 16:19 schrieb Adrian Holovaty:
On 1/17/06, scum <[EMAIL PROTECTED]> wrote:
Okay- that is a lot trickier. Here's some yucky code that uses the
exec
command to accomplish
hmm, i thought this is quite easy as it´s already used in the
admin-interface (with filters).
thanks for the code,
patrick
Am 17.01.2006 um 16:14 schrieb scum:
Okay- that is a lot trickier. Here's some yucky code that uses the exec
command to accomplish the same goal... but it's definitel
On 1/17/06, scum <[EMAIL PROTECTED]> wrote:
> Okay- that is a lot trickier. Here's some yucky code that uses the exec
> command to accomplish the same goal... but it's definitely not the
> elegant solution you are looking for...
>
> q = []
> for key, value in request.GET.items():
>
On 1/17/06, patrick kranzlmüller <[EMAIL PROTECTED]> wrote:
> unfortunately, it doesn´t.
You're right. You have to consider that request.GET and request.POST
are MultiValueDicts. If you don't expect one key to have more than one
value, something like this might work:
milestones_list = milesto
What error are you getting when you try
"milestones.get_list(**request.GET)"?
Okay- that is a lot trickier. Here's some yucky code that uses the exec
command to accomplish the same goal... but it's definitely not the
elegant solution you are looking for...
q = []
for key, value in request.GET.items():
q.append ( "%s = %s" % (key, value) )
unfortunately, it doesn´t.
Am 17.01.2006 um 15:53 schrieb Andreas Stuhlmüller:
On 1/17/06, patrick kranzlmüller <[EMAIL PROTECTED]> wrote:
actually, i don´t really know my query parameters.
could be responsible__id__exact=5
or status__exact=1
or responsible__id__exact=5&status__exact=5
... a
On 1/17/06, patrick kranzlmüller <[EMAIL PROTECTED]> wrote:
> actually, i don´t really know my query parameters.
> could be responsible__id__exact=5
> or status__exact=1
> or responsible__id__exact=5&status__exact=5
> ... and so on.
>
> so, it´d be nice to have something like milestones_list =
> m
thanks for answering.
actually, i don´t really know my query parameters.
could be responsible__id__exact=5
or status__exact=1
or responsible__id__exact=5&status__exact=5
... and so on.
so, it´d be nice to have something like milestones_list =
milestones.get_list(x), where x is the query.
th
All get variables are automagically placed into the request.GET
dictionary. In your example:
http://mysite.com/manage/projects/1/milestones/?responsible__id__exact=1
Your variable `responsible__id__exact` would be obtained through the
code:
myVar = request.GET["responsible__id__exact"]
or
myVar =
Where would I put extra processors? in /myproject/processors.py ?
Processors are global and not an app specific one ... so where are
others putting theirs? Just after a bit of django etiquette...
Alice
my url looks like:
http://mysite.com/manage/projects/1/milestones/?responsible__id__exact=1
in the user-group, i found a posting where adrian said:
"The query parameters are, essentially, the same as keyword arguments
that can be passed to get_list(). "
can anybody give me a hint on how to ac
I had the same problem. This is what worked for me.
Make a media directory somewhere for your project, like
/work/django/media/
add that directory to your apache conf, ie
#...
and add this line to your virtual host section
Alias /media/ "/work/django/media/"
Then you just have to c
>So, it seems, from command line, working.But not from browser
I wasted an hour last week setting up cgi with lighttpd, not getting
'hello world' to appear.
It was a Firefox thing- it showed up OK in IE, but Firefox wouldn't
show it without the response being properly formed.
Derek
>FastCGI: incomplete headers (0 bytes) received from server
>"/home/bmabma/egsmtrade.com/hello.fcgi"
Since the hello.fcgi isn't in any way using something from Django, this
sounds more like a Dreamhost problem than a Django problem. Did you ask
in the Dreamhost forum? Maybe others there might be
Hi !!
Can anyone please let me know how to set up WingIDE with Django, and
turbogears?
Thanks,
Jay.
and with 'hello.fcgi', did you pkill python before your tests?
Hi,
Such an output might be caused due to abscence of a package that is
needed for your app. Dreamhost probably doesn't have, e.g., MySQLdb in
the pytthon's site-packages.
Have you made it sure that you have installed every lib required in a
custom location somewhere in your home dir?
Greetings,
Ok; in the absence of any objections, I've just committed the change,
and closed off the ticket. Bulk delete is now available in
magic-removal.
Russ Magee %-)
On Tuesday 17 Jan 2006 4:45 pm, Julio Nobrega wrote:
> Restriction *is* on the database too, when you run "manage.py
> startsql" (the command that outputs the CREATE TABLEs) you can
> see the UNIQUE being added. But Bryan is updating his model,
> adding the UNIQUE after the table has been create
Restriction *is* on the database too, when you run "manage.py
startsql" (the command that outputs the CREATE TABLEs) you can see the
UNIQUE being added. But Bryan is updating his model, adding the UNIQUE
after the table has been created...
On 1/17/06, Jordi Funollet <[EMAIL PROTECTED]> wrote:
>
On Tuesday 17 Jan 2006 3:53 pm, Jordi Funollet wrote:
> > Afaik Django enforces uniqueness at the application level, but
> > you could always add it to the database:
>
> Ouch. Really? So Django is assuming that we are going to work
> with their database *exclusively* through Django, and doesn't
>
On 1/17/06, Jordi Funollet <[EMAIL PROTECTED]> wrote:
> This restriction should be on database, shouldn't it?
I'd think this would run into compatibility problems with the various
supported backends. For example, SQLite supports UNIQUE, but not
FOREIGN KEY constraints (its official docs say that
Julio Nobrega dixit:
> Afaik Django enforces uniqueness at the application level, but you
> could always add it to the database:
Ouch. Really? So Django is assuming that we are going to work with their
database *exclusively* through Django, and doesn't protect us from doing silly
things to the d
Thanks for the quick response.
I have the following in my apache config:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE .home.kris.myproject.settings
PythonDebug On
The sett
On 1/17/06, tonemcd <[EMAIL PROTECTED]> wrote:
Seriously, this is a major thing for any kind of migration we have inmind from Zope -> Django, so any thoughts on how to do this would begreatly appreciated.Hi,In my personal experience, django authentication framework is very thin, and you can bypass
On Tuesday 17 January 2006 01:04, Bryan Murdock wrote:
> I'm building myself a little blog with the django blog app that is
> found in the djangoproject.com code. I like the archive links (seen
> on the right-hand side of http://www.djangoproject.com/weblog/).
> However, I'd like those links auto
So I did:
1.I went to DreamHost Control Panel (Domains / Manage Domains) and
enabled fast_CGI.(Now FastCGI Support box is checked there)
2.I copied fcgi.py and hello.fcgi file to my Web
Directory(egsmtrade.com)
3. I added to fcgi.py and hello.fcgi the first line #!/usr/bin/python
4. I set 755 per
bump
Bueller? Bueller? Ferris Bueller? ;)
Seriously, this is a major thing for any kind of migration we have in
mind from Zope -> Django, so any thoughts on how to do this would be
greatly appreciated.
Cheers,
Tone
48 matches
Mail list logo