thank you. It is not an easy upgrade. It may take long time to do it...
Maybe the differences between versions are no so big ...
Miguel
On Fri, Apr 3, 2009 at 12:40 AM, John Baker wrote:
>
> I did this over dec/jan for an inherited app.. it was an absolute
> nightmare.. i had to rewrite huge c
Hello.
I am new to django. I have read documentation and created a little
project.
I plan application with many forms.
Mostly, I need to populate forms, when I have foreign key in model,
like in django admin interface when we click on plus picture, a new
window opens.
So, I would like to know is
I am working on setting up my first django site, and I had the
documentation module working, but then today I tried to use it, and I
got this error:
Page not found
The requested admin page does not exist.
I searched around, and found one message that said I needed to check
my urls.py file to ens
What do you have 'django.root' option set to in Apache configuration
related to mod_python?
Graham
On Apr 3, 9:23 am, John Baker wrote:
> I have a strange problem with simple RSS feeds. It works fine locally
> on my development machine but when I deploy to the test server running
> through mod_
Have you changed your `Site` model entry to the proper port number?
On Fri, Apr 3, 2009 at 2:23 AM, John Baker wrote:
>
> I have a strange problem with simple RSS feeds. It works fine locally
> on my development machine but when I deploy to the test server running
> through mod_python on port :8
On Thu, 2009-04-02 at 22:34 -0700, Joshua Partogi wrote:
> On Apr 3, 11:23 am, Malcolm Tredinnick
> wrote:
> > On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote:
> > > Dear all,
> >
> > > In django admin we can give permission to user to edit, delete or
> > > create certain model. But what
On Apr 3, 11:23 am, Malcolm Tredinnick
wrote:
> On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote:
> > Dear all,
>
> > In django admin we can give permission to user to edit, delete or
> > create certain model. But what I want to do now is a user can only
> > edit or delete the data that he
Thank you for this helpful input, David. Have not been able to focus
on this development task yet, but will soon. Your guidance is very
much appreciated.
Thanks,
Stephen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Thu, 2009-04-02 at 19:04 -0700, Timboy wrote:
> What's the best way to add users with an auto generating username? ie:
> Taub.John, Smith.Tim, Smith.Tim2
You can do it however you like, since the user will never see it.
Something as simple as taking the email address, replacing "@" with "AT"
a
What's the best way to add users with an auto generating username? ie:
Taub.John, Smith.Tim, Smith.Tim2
On Apr 1, 3:37 am, johan.u...@student.hpi.uni-potsdam.de wrote:
> Best way is to write your own authentication backend I think.
>
> Check the
> docs:http://docs.djangoproject.com/en/dev/topic
On Thu, 2009-04-02 at 18:29 -0700, Dave Fowler wrote:
[...]
> Profile.objects.all().select_related()
>
> But it seems weird to base everything around the object that isn't
> used for authentication. Is that what most people do?
"Seems weird" isn't a particularly strong technical reason (and is
In two lines:
from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', 'f...@example.com',
['t...@example.com'], fail_silently=False)
Mail is sent using the SMTP host and port specified in the EMAIL_HOST
and EMAIL_PORT settings. The EMAIL_HOST_USER and EMAIL_
On Thu, Apr 2, 2009 at 9:29 PM, Dave Fowler wrote:
>
> I'm about to do my umpteenth Django app and I'm just wondering if
> there is a new standard (better) way to extend the User model. I've
> used this method
>
> http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/
>
> And
I'm about to do my umpteenth Django app and I'm just wondering if
there is a new standard (better) way to extend the User model. I've
used this method
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/
And a few others, but all of them keep the User and Profile objects
s
Hi Joey,
On 4月3日, 上午2时07分, Joey Gartin wrote:
> I am new also, but I noticed right away that you had quotes around Speaker
>
> speakers = models.ManyToManyField("Speaker")
> That may be the problem. I have added manytomany fields after the fact and
> had no problems.
Thanks, but I did try chan
On Thursday 02 April 2009 18:20:27 Gath wrote:
> have downloaded Dojo 1.3, i want to start sampling some examples in
> the Dojo website using Django, where do i place the package? How do i
> call it in my template?
a template is just html - put dojo where you put your other css and js files
an
This was fixed by upgrading to the latest version in SVN.
Thanks for your help B
On Apr 1, 8:57 pm, "Michael Rose Jr." wrote:
> On Apr 1, 8:40 pm, Brian Neal wrote:
>
>
>
> > On Apr 1, 10:19 pm, "Michael Rose Jr."
> > wrote:
>
> > > Brian. Thanks for responding. I mean to post "name". I've be
On Fri, 2009-04-03 at 00:26 +1100, Joshua Partogi wrote:
> Dear all,
>
> In django admin we can give permission to user to edit, delete or
> create certain model. But what I want to do now is a user can only
> edit or delete the data that he/she created.
>
> Is there any way we can do this in dj
On Thu, 2009-04-02 at 00:46 -0700, Zeal wrote:
>
>
> On 4月2日, 下午2时39分, Alex Koshelev wrote:
> > On Thu, Apr 2, 2009 at 10:36 AM, Zeal wrote:
> >
> >
> > Documentation knows [1]
> >
> > [1]:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4
>
> Hi, Alex,
>
> Really appreciates you
On Wed, 2009-04-01 at 14:13 -0700, christian.oudard wrote:
> I have made a page for admins to set a user account to inactive, but I
> noticed that the user's session continues if he is logged in. It
> appears that the is_active field is only checked when the user logs
> in, not when each request i
Hi Scott,
> I'm having an issue confirming that Django is installed properly. I
> did what the Django site said: "You can tell Django is installed by
> running the Python interactive interpreter and typing import django."
> So i typed in import django and got:
>
import django
> Traceback (mo
On Wed, 2009-04-01 at 15:14 -0300, Fábio Costa wrote:
> Sorry, what he meant to ask is if the Django project use any kind of
> integration within trac and sphinx, like some kind of plugin.
If you mean djangoproject.com, the answer is "no".
code.djangoproject.com is a Trac installation, www.django
On Wed, 2009-04-01 at 10:58 -0700, jeremias.kangas wrote:
> Hello,
>
> I noticed that default value when adding a field for a model is
> null=False. This default option is not very good for me, because for
> almost every field needs to be null in my application. Is there a way
> to change these d
On Thu, Apr 2, 2009 at 9:23 PM, Andrew G. wrote:
>
> I have a django app that is built against an existing database. In
> the database, there are a couple tables used as the many-to-many
> relation lookup table. However, I have mapped models to the many-to-
> many lookup table, since I have a n
To install Django on the server, if it isn't there already.
On Mar 31, 11:33 pm, Wiiboy wrote:
> Why do you need shell access? Aren't you supposed to do all the
> coding and stuff on the local server, and then upload it?
--~--~-~--~~~---~--~~
You received this me
I did this over dec/jan for an inherited app.. it was an absolute
nightmare.. i had to rewrite huge chunks of it..
It really would depend on how many hacks the original app had though.
Unfortunately, I inherited lots of obscure shortcuts and extensions
that became incompatible so most of it stopp
I'm having an issue confirming that Django is installed properly. I
did what the Django site said: "You can tell Django is installed by
running the Python interactive interpreter and typing import django."
So i typed in import django and got:
>>> import django
Traceback (most recent call last):
I have a strange problem with simple RSS feeds. It works fine locally
on my development machine but when I deploy to the test server running
through mod_python on port :81 the blog item links miss out the port
number and so don't work.
Test server with new RSS code..
http://www.adrem.uk.com:81/fe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jumpfroggy wrote:
> Summary: django should throw an exception when a model has its own
> name as the 'to' field of a ManyToMany() insead of 'self'.
> Have I missed anything? I may be misunderstanding the problem here,
> but I have managed to fix my
Hey folks,
I posted code for a facebook connect django app on google code. I
refactored code from the News Mixer application to use for another
project, and figured it was useful enough that others might want it.
http://code.google.com/p/django-facebookconnect/
http://code.google.com/p/newsmixer
On 02-Apr-09, at 8:57 PM, Miguel wrote:
> I have seem new django versions improve the performance of web
> applications. I have a huge web aplication and I m thinking about
> changing it. How hard would be to upgrade django 0.96 to the newest
> one? Has it backward compatibility?
The porting
Err, sorry, I meant to cancel and sent this instead. I believe I found my
problem while preparing to email about this (wasn't looking close enough
at the error message, and it looks like apache was looking in the wrong
python's site-packages)
On Thu, 2 Apr 2009, Jeff Gentry wrote:
>
> Ok, so I
Ok, so I've managed to get django running using mod_python on some other
machines, but today I'm being stymied:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
Summary: django should throw an exception when a model has its own
name as the 'to' field of a ManyToMany() insead of 'self'.
I had a field like this:
def Item(Model):
name = CharField(max_length=100)
related_items = ManyToManyField('Item', blank=True)
But this caused some v
Hello,
Has anyone played with google-transmeta yet?
It's great but I can't seem to understand how to pass the model
building part.
I'm wondering what's the best way to pass variables to templates. For
instance:
def view(request, language, slug):
activate(language)
page = Page.objects.ge
gzjjgod
I am new also, but I noticed right away that you had quotes around Speaker
speakers = models.ManyToManyField("Speaker")
That may be the problem. I have added manytomany fields after the fact and
had no problems.
Good luck!
On Thu, Apr 2, 2009 at 10:02 AM, jjgod wrote:
>
> Hi,
>
> I'm
Hello Tim,
I gave it a try, no errors, but also no results for the Contact. I
think I have a problem in the resultsc statement. How do I filter out
both qset3 and qset3_inner?
query = request.GET['q']
terms = query.split()
# terms = re.findall(r'\w+', query)
if query: # will
Hi Karen, thanks for the reply, and sorry for not being clearer in my
original message.
I've done a bit more debugging and I've found that whenever I put any
form of import line, such as
"from django.db import models" or
"from internal.models import *" in __init__.py I get the following
error whe
Hi,
I'm running Django version 1.1 beta 1 SVN-10368.
I'm having a problem trying to a ManyToMany field to an existing
model.
In an application called "videos", I created a models.py like this:
from django.db import models
class Speaker(models.Model):
name = models.CharField(max_length=200
Hello everybody,
I have seem new django versions improve the performance of web applications.
I have a huge web aplication and I m thinking about changing it. How hard
would be to upgrade django 0.96 to the newest one? Has it backward
compatibility?
thank you very much,
Miguel
Miguel
Sent fro
I've been searching and trying to figure this out, but I haven't quite
found the source that makes it snap in my mind.
I'd like to be able to send an email or emails out from my site
through the admin. I have the email settings added to settings.py,
but not sure where to go next.
I've read the
I've been searching and trying to figure this out, but I haven't quite
found the source that makes it snap in my mind.
I'd like to be able to send an email or emails out from my site
through the admin. I have the email settings added to settings.py,
but not sure where to go next.
I've read the
Gath,
Attached at the end of this email an exchange from a few months back
about Dojo & Django using the dojango application.
I've been using this and have been happy with it.
http://code.google.com/p/dojango/
Rob
On Apr 2, 2009, at 7:55 AM, Dougal Matthews wrote:
> It kinds depend
It kinds depends what you want to do really.
JavaScript is run inside the browser and Django is running on your website.
So it doesn't even know what Django or Python is, however they can
communicate and pass data.
By using it with Django, do you mean you want to do some Ajax stuff?
If that's the
Daniel and everybody else can see my reply like I can see your reply to him
;)
Just so you know you don't need to reply to each of us individually...
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/2 Loewe, Rosemarie
> Hello Daniel,
>
> just I got a mail of anothe
Hi Austin,
I dont know if you still need a solution, but I did, and someone else
might -- also for the sake of completion, here is what i cooked up:
Just inherit from below class, instead of FormWizard, and start
feeding it FormSet classes as one sees fit. Also, there might be
better solutions, e
Even if an abstract class was added as an intermediary, wouldn't the
derived class still try to create the table? There is no solution
along the lines of a meta option "donotcreatetable" or the like?
On Apr 2, 10:06 am, Adam N wrote:
> I'm pretty sure you'll need to make it an abstract model.
I'm pretty sure you'll need to make it an abstract model. You could
make the model that accords to the existing table abstract and then
subclass that model with no additional attributes (except a different
name) - that will give you access to the data directly if you need it
while leaving the exi
Thanks a ton - that's exactly what the issue was.
On Apr 1, 8:28 pm, Russell Keith-Magee wrote:
> On Thu, Apr 2, 2009 at 5:49 AM,AdamNelson wrote:
> > How do I do a fixture for the Site model? I've tried all sorts of different
> > model names
> > [
> > {
> > "model": "sites.site",
> >
I have been trying to figure this out for two days now with no luck. I
am wanting the add/change view in the Admin app to display an inline
form for the same model twice. Right now I cannot do that. Can
somebody point me in the right direction?
This is a legacy database I am working with, not one
I have a django app that is built against an existing database. In
the database, there are a couple tables used as the many-to-many
relation lookup table. However, I have mapped models to the many-to-
many lookup table, since I have a need for accessing these entries
directly. Since the tables
You should definitely consider Nginx with FastCGI. Something like
this:
http://wiki.nginx.org/NginxDjangoFastCGI
On Apr 2, 2:20 am, Pythoni wrote:
> I am using Django with mod_python and it works but during peak times
> ( heavy loads about 50 Apache jobs), the system is almost hanged
> Is it
But before, is it possible to serialize a form in JSON ?
Thanks
--~--~-~--~~~---~--~~
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
But beforce, is it possible to serialise a form in JSON ?
Thanks
On 11 fév, 00:50, adrian wrote:
> Thank you all for posting this. You saved me probably hours of head
> scratching.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Dear all,
In django admin we can give permission to user to edit, delete or
create certain model. But what I want to do now is a user can only
edit or delete the data that he/she created.
Is there any way we can do this in django admin?
Thank you very much in advance
--
If you can't believe i
Hi.
The docs explain in great detail how you can serve static files like
the
dojo library. Take a look at it here:
http://docs.djangoproject.com/en/dev/howto/static-files/
~Jakob
On 2 Apr., 14:50, Gath wrote:
> All,
>
> I have downloaded Dojo 1.3, i want to start sampling some examples in
> t
All,
I have downloaded Dojo 1.3, i want to start sampling some examples in
the Dojo website using Django, where do i place the package? How do i
call it in my template?
Gath
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hello Daniel,
just I got a mail of another user, he had the correct answer and now it works.
I have no further need for help.
Best regards
Rosemarie
Von: django-users@googlegroups.com im Auftrag von Daniel Roseman
Gesendet: Do 02.04.2009 12:53
An: Django use
Hallo Dougal,
many many thanks for your quick response. Now it works fine.
Best regards
Rosemarie
Von: django-users@googlegroups.com im Auftrag von Dougal Matthews
Gesendet: Do 02.04.2009 14:28
An: django-users@googlegroups.com
Betreff: Re: Django Tutorial,
You error is in urls.py
You have; *include('mysite/polls/urls')),*
you should have; *include('mysite.polls.urls')),*
The path is written python module style (with dots) rather than directory
style (with slashes)
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/2 Lo
text = forms.CharField(label="text", max_length=10,
widget=forms.TextInput(
attrs={'size':'10', 'class':'inputText'}))
Thanks Ayaz the above works perfectly.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks that explains it fully
--~--~-~--~~~---~--~~
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
dj
On Apr 2, 8:35 am, rorocam wrote:
> Hello …,
>
> I have problems with the „Decoupling the URLconfs”. I did, as Django
> Tutorial (Part 3) shows me, but it does not work, the browser shows
> following error:
>
> > ImportError at /polls/
> > Import by filename is not supported.
>
> What is wrong wi
Thanks to pagenoare on #django-pl there is some progress:
If I create a modelform, and instead of manually invoking model
instance and saving it, I just do:
new_image = form.save()
Things work like expected. Why? :)
On 2 Kwi, 12:18, pielgrzym wrote:
> Hi there,
>
> Before explanation here is
Hi,
I am trying to create a (single) comprehensive form with UserProfile +
some Fields from User to be given as form_class arguments for django
module "django-profiles"
I think my next alternative (without above module) is FormSets ? (is
it ?, please advise )
Thx/Mahesh
Hi there,
Before explanation here is the link to problematic code:
http://wklej.org/hash/968a35feef/
If one creates a model with imageField and uses it via admin
everything is just fine - model instances have the image field with
correct url:
photo = Image.objects.get(pk=1)
photo.image.url
'/m
See:
http://docs.djangoproject.com/en/dev/ref/settings/#setting-SESSION_COOKIE_DOMAIN
Graham
On Apr 2, 8:28 pm, coulix wrote:
> Hi,
>
> i have the following domainwww.foo.comand an alias foo.com
> When i post a comment i want to redirect to the submit page so i use a
> wrapper for this:
>
>
I'm not entirely sure why you want to do this (so please excuse me if this
doesn't apply) but you should know that you're allowed more than one django
Form inside a single HTML element.
So you can easily have several ModelForms (or mix them with regular Forms)
inside a single tag.
I hope that m
Thanks! Problem solved, here's how to do it:
class QuoteItemManager(models.Manager):
def from_product(self, product):
i = QuoteItem(current_product=product)
i.product_serialized = serializers.serialize('json',
Product.objects.filter(id=product.id))
try:
i.p
How Do I Extend Model form. I need to generate a form with some fields
from User + UserProfile; However I see nothing ..
class UserForm(ModelForm) :
class Meta:
model = User
class BigForm(UserForm):
class Meta(UserForm.Meta):
model = MySiteProfil
I've got the same problem. I'm using signals, so I guess your problem
will not be solved with signals.
I'm also using pre_save. It seems that the attribute upload_to isn't
(yet) set when in pre_save.
I still don't know if it's a bug, or a 'new feature', as my code works
perfectly on Django 1.0.2.
Hi,
i have the following domain www.foo.com and an alias foo.com
When i post a comment i want to redirect to the submit page so i use a
wrapper for this:
def comment_posted( request ):
if request.GET.has_key('c'):
comment = get_object_or_404(Comment, pk=request.GET['c'])
retu
Yeah I've used the template engine for this before and it has worked well.
No complaints and it's relatively simple:
from django.core.mail import send_mail
from django.template import loader, Context
t = loader.get_template('my/template.txt')
send_
On Apr 2, 2:58 am, Joey Gartin wrote:
> Newbie question:
>
> In a view I am sending out a few emails to users. The email format is
> identical for each user, with the users information being dynamic.
>
> My question is regarding forming a long email and using it as the body over
> and over (in a
Hi,
If you don't need the form elements themselves, as you do everything
in the save method, you don't need to do anything with the form.
All you need to do, is to create the visual effect, which can be done
with jQuery quite easily. You could just hide the fields if you prefer
them
empty and cre
Hi,
I've got two very unremarkable models, Invoice Order that has a
foreign key to an Invoice model. There are some tax calculations that
happen on the save of the order model that populate and update the
corresponding fields in the Invoice model. All works fine and in fact
all calculations in
Hello …,
I have problems with the „Decoupling the URLconfs”. I did, as Django
Tutorial (Part 3) shows me, but it does not work, the browser shows
following error:
> ImportError at /polls/
> Import by filename is not supported.
What is wrong with my application? I have installed Python 2.6 and
On 4月2日, 下午2时39分, Alex Koshelev wrote:
> On Thu, Apr 2, 2009 at 10:36 AM, Zeal wrote:
>
>
> Documentation knows [1]
>
> [1]:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4
Hi, Alex,
Really appreciates your prompt response and useful solution, the sql
queries have been dramatic
On Apr 2, 5:20 pm, Pythoni wrote:
> I am using Django with mod_python and it works but during peak times
> ( heavy loads about 50 Apache jobs), the system is almost hanged
> Is it worth changing from mod_python into mod_wsgi?
> What would I get or lose?
Read:
http://blog.dscpl.com.au/2009/
79 matches
Mail list logo