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 have long experience with
> desk
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):
> title = models.CharFiel
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 application?
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
>
> On Jun 3, 8:04 am, adel
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 chang
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 d
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 activity
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
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 database(using sqlite) - ju
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):
> title = models.CharFie
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 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 separ
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
> system starts eventua
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: > >
http://code.google.com/p/googleappengine
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
reas
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 your own form for sendi
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&lnk=gst
And: http://code.djangoproject.com/ticket/8968
2009/6/3 Ian Lewis
> Iperk,
>
> Is this perhaps what you are looking for
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
> lowercase name of the subcla
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 question is: if i don't define a
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 is: if i don't define a pk for
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 :
>
> Couldn't you do this with the post-s
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 to sniff the hostname:
fr
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 triggered once the user hits th
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 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 scheduling tasks involvi
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 Jun 3, 2:09 am, Basti
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
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,
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 seq
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
> in
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 develo
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 big
> > text file and loads
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 you don't need to necessarily
> 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 Page
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 be
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,
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 /some/path/django/engineer
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!
>
> Ben
>
> >
>
a) This cod
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',
> context_instance=RequestContext(request, conte
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 applic
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 well. But I don't use named url
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 usin
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 great.
>
> But I'm curious
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 a
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 so I'll have to save the entire form by
> > hand.
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 named "reports", and the Repo
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 according to the
> > docs, but it's not. In this case, Doma
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 support multiple column p
--- 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? Sukses ga?
Btw, gw
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 beca
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 els
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 722
> ...
>
>
>
>
> >
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'
xgm/Blog/c
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 subscri
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 django
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, *args
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 isn't an exact command to
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 decide whether to go t
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."""
>workstreams = forms.
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 working swimmingly. It seems that 10.5
> >
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 `pwd`/django-trunk
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 wrote:
> > > Hi all,
>
> > > I've got a quick use case that I think should work a
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 if this looks like a bug in Django?
> >
> > > On Jun 1, 6:12 pm, Don Spaulding
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 Django?
>
> > > On Jun 1, 6:12 pm, Don Spaulding wrote:
> > > > Hi all,
>
>
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 pro
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 anythi
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 to match the new sc
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 from
> the URL before it reach
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
> > > wrote:
>
> > > > bump.
>
> > > > Can anyone tell me if this looks like a bug in Django?
>
> > > > On J
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 Wed, Jun 3, 2009 at 3:03 PM, Don Spaulding
> > > > wrote:
>
> > > > > bump.
>
> > > > > Can anyone t
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 within
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 n
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 sche
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 latest code. And do a reset to t
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 --no
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 you
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 before it reaches my django
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 documentatio
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 demonstrated
>> example that proves your c
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 and albums together.
> However
(obviously, the second example omits the clean_data() call by accident!
question still applies..)
--~--~-~--~~~---~--~~
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
Hi
I am trying to make sense of Django's form capabilities, having only
done ajax posts before..
Before ajaxification:
{{ form.as_p }}
def add_person(request):
form = PersonForm(request.POST)
if form.is_valid():
Person.objects.create(name=form.cleaned_data['name'])
82 matches
Mail list logo