On Wed, Jun 3, 2009 at 9:09 PM, Brian May
wrote:
>
> Having composite pks can have a gotcha. For example, in my mysql based
> database, my legacy application had the primary key (from memory) in a table
> of
> (photo_id,album_id) - this was a table linking photos
On Thu, Jun 4, 2009 at 11:19 AM, Brian May
wrote:
>
> On Thu, Jun 04, 2009 at 10:27:35AM +0800, Russell Keith-Magee wrote:
>> If you're going to start throwing around claims that loaddata/dumpdata
>> doesn't work, you _really_ need to back them up with a
You do realise that Apache will generally run your application as a
special user. If that special user doesn't have read access to stuff,
then things can not work properly. See:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User
There is a lot of
On Jun 4, 9:56 am, Kevin Audleman wrote:
> Hi gang,
>
> I am serving my django website out of a sub-folder,
> e.g.http://www.mydomain.com/directory. My hosting provider is WebFaction
> and they've set things up so that the /directory part is stripped from
> the URL
On Thu, Jun 04, 2009 at 10:27:35AM +0800, Russell Keith-Magee wrote:
> If you're going to start throwing around claims that loaddata/dumpdata
> doesn't work, you _really_ need to back them up with a demonstrated
> example that proves your claim. We provide Trac for precisely this
> reason, and
I wanted to see if I could deploy my project on Apache on a windows
server using mod_wsgi. I got it working. The only problem is now I
can not run the development environment using manage.py I am using
Pyscripter and I now get this message every time I run manage.py
Command Line : runserver
On Thu, Jun 4, 2009 at 10:00 AM, Brian May
wrote:
>
> On Tue, Jun 02, 2009 at 09:06:38PM -0700, Kegan wrote:
>> 1. Use Django's management command "dumpdata" to get the JSON
>> representative of an app. Save the JSON into a file (oldmodel.json).
>> 2. Git pull the
On Wed, Jun 03, 2009 at 03:47:18PM -0500, Jaime Casanova wrote:
> > Django does not currently support multiple column primary keys, see:
> > http://code.djangoproject.com/ticket/373
At the very least django should complain loudly when you try this. I didn't
realize my database (from a legacy
On Tue, Jun 02, 2009 at 09:06:38PM -0700, Kegan wrote:
> 1. Use Django's management command "dumpdata" to get the JSON
> representative of an app. Save the JSON into a file (oldmodel.json).
> 2. Git pull the latest code. And do a reset to the app. So the
> database will have the new model schema
My non-wizard templates are in this directory, all working as
expected:
my_wha_templates/wha/
I have built a form wizard in my whasite.wha.forms.py exactly as per
the docs. I have pasted the suggested template HTML into a file:
my_wha_templates/wha/contact/forms/wizard.html
My urls.py is
On Jun 3, 7:11 pm, Don Spaulding wrote:
> On Jun 3, 5:59 pm, Don Spaulding wrote:
>
>
>
> > On Jun 3, 5:22 pm, Don Spaulding wrote:
>
> > > On Jun 3, 3:05 pm, Alex Gaynor wrote:
>
> > > > On
On Jun 3, 5:59 pm, Don Spaulding wrote:
> On Jun 3, 5:22 pm, Don Spaulding wrote:
>
>
>
> > On Jun 3, 3:05 pm, Alex Gaynor wrote:
>
> > > On Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding
> > >
On Wed, Jun 3, 2009 at 8:56 PM, Kevin Audleman wrote:
>
> Hi gang,
>
> I am serving my django website out of a sub-folder, e.g.
> http://www.mydomain.com/directory. My hosting provider is WebFaction
> and they've set things up so that the /directory part is stripped
On Wed, Jun 3, 2009 at 11:38 PM, Kegan Gan wrote:
>
> Hi Russell,
>
> On the first issue: Good point. I have not the opportunity to work
> with such a huge database.
>
> On the second issue: Yes, what I am doing now is really about writing
> conversion code to fit the old json
A more general solution is to create a another database field for
sorting/searching.
If you override the model's save() method to copy the field's value,
removing any characters you don't want (it could be language
independent, so would remove "Der/Die/Das" from german titles, or it
can do
Hi gang,
I am serving my django website out of a sub-folder, e.g.
http://www.mydomain.com/directory. My hosting provider is WebFaction
and they've set things up so that the /directory part is stripped from
the URL before it reaches my django app (so my app sees "/"). In order
to get django to
On Jun 3, 5:22 pm, Don Spaulding wrote:
> On Jun 3, 3:05 pm, Alex Gaynor wrote:
>
>
>
> > On Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding
> > wrote:
>
> > > bump.
>
> > > Can anyone tell me if this looks like a bug in
On Wed, Jun 3, 2009 at 5:22 PM, Don Spaulding wrote:
>
>
>
> On Jun 3, 3:05 pm, Alex Gaynor wrote:
> > On Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding >wrote:
> >
> >
> >
> >
> >
> > > bump.
> >
> > > Can anyone tell me
On Jun 3, 3:05 pm, Alex Gaynor wrote:
> On Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding wrote:
>
>
>
>
>
> > bump.
>
> > Can anyone tell me if this looks like a bug in Django?
>
> > On Jun 1, 6:12 pm, Don Spaulding
Hello,
I've just installed the development version in leopard on the mac, and
when I did this step:
"On Unix-like systems, create a symbolic link to the file django-trunk/
django/bin/django-admin.py in a directory on your system path, such
as /usr/local/bin. For example:
ln -s
Thanks Alex! That's just what I wanted to know, could I switch
easily. I would rather put off some of that configuration time!
W
On Jun 3, 3:14 pm, Alex Gaynor wrote:
> On Wed, Jun 3, 2009 at 5:12 PM, zignorp wrote:
>
> > I just fixed this and it's
On Wed, Jun 3, 2009 at 5:12 PM, justind wrote:
>
> Hello,
>
> I'm using the following to provide a select box with filtered choices:
>
> class AssetForm(ModelForm):
>"""Asset form takes a project id. It only allows workstreams
> attached to
>this project name."""
On Wed, Jun 3, 2009 at 5:12 PM, zignorp wrote:
>
> I just fixed this and it's working swimmingly. It seems that 10.5
> doesn't come with that directory, so I just did what I said I would in
> the last paragraph, and I have my first page. I'm very excited. Now
> I have to
On Wed, Jun 3, 2009 at 4:52 PM, Andy Dietler wrote:
>
> Is there an easy way to ignore the word "The" when returning a list
> using "__startswith=" in Django/Python?
>
> I've looked around but it's hard to make any ground when searching for
> the word The.
>
> >
>
There
Hello,
I'm using the following to provide a select box with filtered choices:
class AssetForm(ModelForm):
"""Asset form takes a project id. It only allows workstreams
attached to
this project name."""
workstreams = forms.ModelChoiceField(Workstream, None)
def __init__(self,
I just fixed this and it's working swimmingly. It seems that 10.5
doesn't come with that directory, so I just did what I said I would in
the last paragraph, and I have my first page. I'm very excited. Now
I have to decide whether to go through the pain of getting mysql
working right with
Is there an easy way to ignore the word "The" when returning a list
using "__startswith=" in Django/Python?
I've looked around but it's hard to make any ground when searching for
the word The.
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
following http://aartemenko.com/texts/optional-email-in-django-
comments/ I try to configure comments in a way that the email address
is not required.
I changed my settings.py
INSTALLED_APPS = (
[...]
'xgm.Blog.comments',
)
COMMENTS_APP = 'xgm.Blog.comments'
On Wed, Jun 3, 2009 at 4:22 PM, Bobby Roberts wrote:
>
> hi group
>
> how would i write a filter to do the equivalent of this sql query:
>
> "select year,count(year) from tablename order by year desc"
>
> to produce a result such as
>
> 2009 1000
> 2008 750
> 2007
Hi -
I'm trying to change the way a ChoiceField (with widget =
forms.RadioSelect) is being rendered in a template. Currently,
rendering the form as_p() for instance, will return HTML such as:
choice 1
...
Is there a way to control how this ChoiceField is rendered? I'd like
to use something
hi group
how would i write a filter to do the equivalent of this sql query:
"select year,count(year) from tablename order by year desc"
to produce a result such as
2009 1000
2008 750
2007 722
...
--~--~-~--~~~---~--~~
You received this message
--- In id-pyt...@yahoogroups.com, Pramuko Aji wrote: > > Siap
Pak Wid! Insya Allah saya datang hari Kamis, sekalian mampir ke RICE :D >
Saya sih siapnya jadi suporter doang. Kalo sampeyan butuh bala bantuan
tinggal call saya, ntar saya bantuin sebisa mungkin :)
Gimana acaranya?
On Wed, Jun 3, 2009 at 8:13 AM, Alex Gaynor wrote:
>so the question is: if i don't define a pk for an
>> existing table, there will be problems in the application? for example
>> when deciding if a save() should be an insert or an update?
>>
>
> Django does not currently
On Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding wrote:
>
> bump.
>
> Can anyone tell me if this looks like a bug in Django?
>
> On Jun 1, 6:12 pm, Don Spaulding wrote:
> > Hi all,
> >
> > I've got a quick use case that I think should work
bump.
Can anyone tell me if this looks like a bug in Django?
On Jun 1, 6:12 pm, Don Spaulding wrote:
> Hi all,
>
> I've got a quick use case that I think should work according to the
> docs, but it's not. In this case, Domain objects have a reverse fkey
> relation
thanks that's brilliant! I'm going to re-read the doc anyway.
Bastien
On Jun 3, 6:36 pm, Jashugan wrote:
> On Jun 3, 8:20 am, Bastien wrote:
>
> > Yes it seems to be the logical solution. And does this override the
> > save() method? I guess yes
Sorry about the example having bad syntax (doh!) -- I will get that
fixed. I chose the public__ prefix because it makes it easier to
introspect the supplied instance to find the methods intended to be
public without forcing users of the class to provide a list
themselves. You can put the class
On May 19, 5:51 am, palewire wrote:
> I've stumbled my way into methods for automatically denormalizing
> ForeignKey data -- and now see that better approaches have been
> packaged up the very cool django-denorm(http://code.google.com/p/
> django-denorm/) -- which is
I get frustrated when I go to an older thread and someone has a link
to dpaste, but the paste no longer exists. The whole point of the
thread is to keep the solution of a particular issue available for
posterity (or at least for a year). Dpaste, by default, doesn't allow
for this[1].
I think
On Jun 3, 10:30 am, "eric.frederich" wrote:
> Is there a technical reason that this can't be done? I noticed I can
> set LOGIN_URL in settings but it seems weird that everything else in
> the system seems to work fine except this one piece.
I have to do this as
Hi,
I have a simple Django application which runs appropriately in the
Django development server. I am deploying it with Apache and
mod_wsgi. Using a simple wsgi file as described in various deployment
documents (e.g.,
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/),
the
On Jun 2, 5:00 pm, Matt wrote:
> //views.py
> from django.template import RequestContext
> def detail(request):
> ...
> context = { 'employees': employees, 'entityinfo': entityinfo}
> return render_to_response('results/resultstable.html',
>
On Wed, Jun 3, 2009 at 12:14 PM, BenW wrote:
>
> I just posted a JSON-RPC handler I've been working with on the wiki:
>
> http://code.djangoproject.com/wiki/Jsonrpc
>
> I'd be interested in feedback from anyone doing async javascript with
> Django over RPC.
>
> Thanks!
>
>
So the person in IT that runs our webserver didn't want django hogging
up the root '/' because he likes to be able to just dump files in the
htdocs directory and have it servable by the webserver.
So now my django site is enabled in apache with...
WSGIScriptAlias /apps
The model's code is below.
First thing I need is to retrieve all the places that are labelled
e.g. "tea".
So I just create a view a type:
places = Place.objects.all()
places = Place.objects.filter(primary_tags__name__contains="tea")
But then additionally I need all the places that are open now,
I just posted a JSON-RPC handler I've been working with on the wiki:
http://code.djangoproject.com/wiki/Jsonrpc
I'd be interested in feedback from anyone doing async javascript with
Django over RPC.
Thanks!
Ben
--~--~-~--~~~---~--~~
You received this message
> I am trying to figure out if there is a way to pass additional context
> to a template from the view, say I have made a contact page but this
> page needs to access a form, currently I don't know how I would be
> able to do that, that is, to pass the form context to whatever
> template the
On Jun 3, 8:20 am, Bastien wrote:
> Yes it seems to be the logical solution. And does this override the
> save() method? I guess yes so I'll have to save the entire form by
> hand.
Well it only overrides the save method if you are using a ModelForm.
If you are, then
thanks a lot everybody for your help, I really appreciate it
jhv
On Thu, Jun 4, 2009 at 11:22 AM, Tom Evans wrote:
>
> On Thu, 2009-06-04 at 10:44 +1930, Juan Hernandez wrote:
> > Hey there people:
> >
> > I started developing a django application where a user takes a
This is how I did it. You have have a settings_default.py, which
contains all the commons settings.
In your development environment, you use settings.py that has this on
the top ...
from settings_defaults import *
... then you overwrite whatever setting variables that are needed for
your
On Thu, 2009-06-04 at 10:44 +1930, Juan Hernandez wrote:
> Hey there people:
>
> I started developing a django application where a user takes a big
> text file and loads it into a database. I have been able to do pretty
> much everything but I've been having some problems on scheduling tasks
>
Hello all,
I know people have asked about custom aggregates/annotations before, but
I haven't quite been able to figure out how to translate those
discussions into what I need (or even if a custom aggregate is the way
to go). Any advice would be much appreciated.
What I would like to do is
Hi Russell,
On the first issue: Good point. I have not the opportunity to work
with such a huge database.
On the second issue: Yes, what I am doing now is really about writing
conversion code to fit the old json to match the new schema. I find
this to be quite straight forward for my use cases,
Django command extensions has 'runjob' and 'runjobs', one of which might
do want you want. You can find the extensions at:
http://code.google.com/p/django-command-extensions/
On Thu, 2009-06-04 at 10:44 +, Juan Hernandez wrote:
> Hey there people:
>
> I started developing a django
Yes it seems to be the logical solution. And does this override the
save() method? I guess yes so I'll have to save the entire form by
hand. I think I'm in for a good documentation reading... thanks for
your guidance Jashugan.
Bastien
On Jun 3, 5:11 pm, Jashugan wrote:
> On
On Wed, Jun 3, 2009 at 10:14 AM, Juan Hernandez wrote:
> Hey there people:
>
> I started developing a django application where a user takes a big text
> file and loads it into a database. I have been able to do pretty much
> everything but I've been having some problems on
Hey there people:
I started developing a django application where a user takes a big text file
and loads it into a database. I have been able to do pretty much everything
but I've been having some problems on scheduling tasks involving the django
ORM.
I know that python manage.py shell loads the
On Jun 3, 2:09 am, Bastien wrote:
> Hi,
>
> I have a form where the user chooses her activity and then I
> automatically fill the category field in the database according to her
> activity. My question is where should live the code that do that? I
> want it to be
On Jun 3, 1:16 am, vishy wrote:
> for templates - I had given absolute path of directory on windows,
> for database(using sqlite) - just the name.But, for deployment I had
> to change both the paths. Is there any way which I can avoid this?
>
> thanks
Another method is
No, the issue isn't adding a user to that group, what I'm talking
about is how do I create the group in the first place?
I feel that creating the group should be done when running syncdb.
On Jun 2, 4:27 pm, Daniel Hilton wrote:
> 2009/6/2 eric.frederich
Jaime,
On Jun 3, 1:06 am, Jaime Casanova
wrote:
> Hi,
>
> I have an existing database, and want to create an application using
> django to administer it...
> I am creating the model classes but there are tables with more than
> one field in the pk. so the question
On Wed, Jun 3, 2009 at 1:06 AM, Jaime Casanova wrote:
>
> Hi,
>
> I have an existing database, and want to create an application using
> django to administer it...
> I am creating the model classes but there are tables with more than
> one field in the pk. so the
Rex,
My appologies. Though the feature is in 1.0 I gave a link to the 1.1
documentation.
Django 1.0 docs: http://docs.djangoproject.com/en/1.0/topics/db/models/#id7
2009/6/3 Ian Lewis
> Rex,
>
> Django parent model instances will also have a property equal to the
>
Looks like the next parameter doesn't really work though.
See:
http://groups.google.com/group/django-users/browse_thread/thread/109763039cef5c3d/470d678e46d7dfe0?hl=en=gst
And: http://code.djangoproject.com/ticket/8968
2009/6/3 Ian Lewis
> Iperk,
>
> Is this perhaps what
Iperk,
Is this perhaps what you are looking for?
http://docs.djangoproject.com/en/dev/ref/contrib/comments/#redirecting-after-the-comment-post
On Mon, Jun 1, 2009 at 6:38 AM, lperk wrote:
>
> Does someone know how to redirect posted comment to another page if
> you have
Rex,
Django parent model instances will also have a property equal to the
lowercase name of the subclass. So for Animal instances that happen to be a
Duck you can do something like "my_room.animal.duck" to get the Duck
instance. Depending on what you are doing you might want to try that. It's
On Jun 3, 11:25 am, Kegan wrote:
> Just for everyone information, I believe Guido just said that Django > 1.1
will be in future Google App Engine release once it (Django 1.1) > is out of
beta. > > Looking forward to this Django 1.1 final! > > Link here: > >
On Wed, Jun 3, 2009 at 1:22 AM, proteus...@gmail.com
wrote:
>
> We've got an application that is running behind apache, mod_wsgi and
> front ending a postgres 8.3 db. We needed to upgrade our Satchmo to
> the latest version which requires Django 1.1. After the upgrade the
On Wed, 2009-06-03 at 02:56 -0700, janedenone wrote:
> Hi,
>
> is it possible to use alternating url patterns without confusing the
> reverse lookup mechanism?
>
> I'd like to do something like
>
> (r'^(authors|autoren)/(?P[_a-z]+)$', 'author_detail'),
>
> Kind regards,
> Jan
Define two
Hi,
is it possible to use alternating url patterns without confusing the
reverse lookup mechanism?
I'd like to do something like
(r'^(authors|autoren)/(?P[_a-z]+)$', 'author_detail'),
Kind regards,
Jan
--~--~-~--~~~---~--~~
You received this message because you
On Jun 3, 12:28 am, Streamweaver wrote:
> I'm pretty new to Django still and I know much is still escaping me.
> In particular I'm having trouble still with how to query subsets of
> related objects.
>
> In this case I have two Models.
>
> class Project(models.Model):
>
On Jun 3, 9:16 am, vishy wrote:
> Hi,
>
> I am developing an application on windows. I decided to upload it on
> webfaction n see how deployment goes. The issues I faced was with
> paths given -
> for templates - I had given absolute path of directory on windows,
> for
I used to use a skeleton, but the problem was that I couldn't easily
upgrade the already "forked" projects to a newer version of the
skeleton; I had to manually backport all changed to each project.
The solution I finally adopted is to have a wrapper for site
configuration (settings and urls) as
Hi,
I have a form where the user chooses her activity and then I
automatically fill the category field in the database according to her
activity. My question is where should live the code that do that? I
want it to be triggered once the user hits the submit button of the
form, I take the
Wiadomość napisana w dniu 2009-06-03, o godz. 10:16, przez vishy:
> I am developing an application on windows. I decided to upload it on
> webfaction n see how deployment goes. The issues I faced was with
> paths given -
> for templates - I had given absolute path of directory on windows,
> for
Hi,
I am developing an application on windows. I decided to upload it on
webfaction n see how deployment goes. The issues I faced was with
paths given -
for templates - I had given absolute path of directory on windows,
for database(using sqlite) - just the name.But, for deployment I had
to
Yes V, thank you. Thats clearly what I need here.
Mike
On Jun 3, 4:01 pm, V wrote:
> I'm not sure that I understood your problem, but form wizards might be
> what you are looking
> forhttp://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/
> I guess
>
>
Hi,
I have an existing database, and want to create an application using
django to administer it...
I am creating the model classes but there are tables with more than
one field in the pk. so the question is: if i don't define a pk for an
existing table, there will be problems in the
On Jun 3, 1:28 am, Streamweaver wrote:
> I'm pretty new to Django still and I know much is still escaping me.
> In particular I'm having trouble still with how to query subsets of
> related objects.
>
> In this case I have two Models.
>
> class Project(models.Model):
>
I'm not sure that I understood your problem, but form wizards might be
what you are looking for
http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/
I guess
On Jun 3, 8:04 am, adelaide_mike wrote:
> I am a newbie with Django and web stuff, but
On Wed, Jun 3, 2009 at 12:06 PM, Kegan wrote:
>
> Hi,
>
> About Django database migration. I know there's a couple of tools
> available (South, evolution, dmigration, etc), but I am pondering an
> alternative here. Hope good discussion entails.
>
> This is what I am doing
I am a newbie with Django and web stuff, but have long experience with
desktop databases.
In Django my user runs through a series of template.htmls choosing a
particular great great grandchild object, a house.
Then she must select a sales agent object. Just in general, how do I
arrange for the
82 matches
Mail list logo