I have two models: http://pastebin.com/pcf2ngdy
But in admin page i cant add more than one project to the user ...
could you help me ... please
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@go
I'm trying to add a simple button to a specific add/change page. This
button takes the user to another url. I'm trying to have a https url
form popup in a separate window.
I have looked in the documentation and all over google but have not
success. Does anyone know how to do this?
--
You rece
On Monday 12 July 2010 11:19:42 pROCKrammer wrote:
> I have two models: http://pastebin.com/pcf2ngdy
>
> But in admin page i cant add more than one project to the user ...
> could you help me ... please
>
use ManyToMany instead of ForeignKey if you want a user to have more than one
project.
Al
Hi all and tank very much for your preciouse time
I have the following scenario:
#models.py
class Anagrafica(models.Model):
GENERE_CHOICES = (
(u'M', u'Maschio'),
(u'F', u'Femmina'),
)
cognome = models.CharField(max_length=20)
nome = models.CharField(m
On Jul 12, 8:27 am, djnubbio wrote:
> def anag_form(request, anag_id=None):
> if anag_id is None:
> x=Anagrafica.objects.create()
> else:
> x=Anagrafica.objects.get(pk=anag_id)
>
> form = AnagraficaForm(request.POST or None, instance=x) # A form
> bound to the POST da
On Jul 11, 11:47 pm, "Sells, Fred"
wrote:
> I don't intend to use these names as column names but as content of a column,
> used for debugging as much as anything else. I'm new to Django, so I had not
> thought of verbose name. I really had not anticipated using the help_text at
> all when I
You might want to take a look at overriding admin templates:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
- Sævar
On Jul 12, 8:38 am, gondor wrote:
> I'm trying to add a simple button to a specific add/change page. This
> button takes the user to another ur
Hi!
Is it possible to access the foreignkey ID value of model? I do not
want Django ORM to try to make query because it fails in this case. I
have exact same problem as
http://groups.google.com/group/django-users/browse_thread/thread/d24f2a502da3171c?pli=1
(though I'm not using admin, I have list
Hi,
I want to know what's the best plugin of Ajax to use with django Dajax or
Jquery (for someone who just began in developping with such technologies)
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hello.
Django community use jquery in contrib/admin - motives - it is fast growing
js framework. I personally use both dojo, jquery and YUI. jQuery is best for
general uses but sometimes is slower then dojo and YUI. Finally it depends
on you and your needs. dajax is good choice.
On Mon, Jul 12, 20
Hi,
Just want to know if this is the correct understanding of how model
instances are passed to templates.
If I load a model instance object into a template - is it the case
that I also implicitly load in any instance objects it is related
through foreign key fields? It seems that these, and in t
On 12/07/10 11:36, Imad Elharoussi wrote:
> Hi,
>
> I want to know what's the best plugin of Ajax to use with django Dajax or
> Jquery (for someone who just began in developping with such technologies)
>
They don't do the same thing?
jquery is a purely client-side javascript toolkit, whereas daj
Please unsubscribe this email.
David
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegro
;? Have you tried to read the signature?
On Mon, Jul 12, 2010 at 13:34, David Ally wrote:
> Please unsubscribe this email.
>
>
> David
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us.
Hi - is it possible to reverse admin urls for user-apps? For example,
if I have an app named "Survey" and a model named "Question", is there
a consistent format for reversing the url to edit this model in the
admin interface (by default this would be /admin/survey/question/)
Many thanks,
B
--
Y
On Jul 12, 11:29 am, Jari Pennanen wrote:
> Hi!
>
> Is it possible to access the foreignkey ID value of model? I do not
> want Django ORM to try to make query because it fails in this case. I
> have exact same problem
> ashttp://groups.google.com/group/django-users/browse_thread/thread/d24f...
>
On Jul 12, 11:27 am, bigfudge wrote:
> Hi - is it possible to reverse admin urls for user-apps? For example,
> if I have an app named "Survey" and a model named "Question", is there
> a consistent format for reversing the url to edit this model in the
> admin interface (by default this would be /a
On 12/07/10 11:27, bigfudge wrote:
> Hi - is it possible to reverse admin urls for user-apps? For example,
> if I have an app named "Survey" and a model named "Question", is there
> a consistent format for reversing the url to edit this model in the
> admin interface (by default this would be /admi
I've set up basic blog with, all running fine but when I runserver I
get Error: No module named comments. I've checked the Python path
(below) and the app/function is there. Can someone explain why it is
isn't finding this when it finds all other installed apps e.g. markup,
tagging.
C:\Python26\L
You already have correct 'django.contrib.comments' in INSTALLED_APPS. Why did
you add another 'comments' as last element?
On Jul 12, 2010, at 4:14 PM, justin jools wrote:
> I've set up basic blog with, all running fine but when I runserver I
> get Error: No module named comments. I've checked th
Oops!
I had 'comments' in my settings.py installed apps for some reason...
removed and works fine
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group
Oops!
I had 'comments' in my settings.py installed apps for some reason...
removed and works fine
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group
I know it's just messign with the css files, but there are a lot of
lines marked with ".filter", not counting the grey border fo the main
table when the filter list is taller than the "instances" box.
I was wondering if anybody has a css files with the modified lines to
include in the Media class
On 08.07.2010 17:12, Nick Raptis wrote:
In firefox, check your preffered language settings, in the content tab.
If there is a non-standard value there (perhaps "/etc/locale/prefs.conf" or
something) instead of a
locale like en-US,
some django pages won't ever display.
Many thanks also from me
I never saw Dajax, but after reading I see it supports Jquery. I use
mootools and Jquery and both are great. Dajax just seem to integrate
them into django a little easier.
On Jul 12, 6:36 am, Imad Elharoussi wrote:
> Hi,
>
> I want to know what's the best plugin of Ajax to use with django Dajax
I'm using the Django Redirect app (http://docs.djangoproject.com/en/
dev/ref/contrib/redirects/) but I'd like to have Google Analytics
track the urls that's I'm redirecting. Is there an standard way to do
something like this without hacking the Django core?
--
You received this message because y
I too have upgraded my Ubuntu systems over several versions in the
past, and also have Weave (now Firefox Sync) installed since a few
weeks, which leaves me wondering how the nonstandard setting got into
the profile in the first place.
Yea, for some reason, my thoughts went to Weave too. Ma
Uhh, you are right... it does work!
I though I was writing a pseudo code (without testing that my pseudo
code indeed worked already)... Sometimes Django is intuitive to extent
it guesses what I wanted!
Though foreignkey documentation did not include information that I can
access the raw ID like "
On Jul 12, 3:40 pm, Nick Raptis wrote:
> Yea, for some reason, my thoughts went to Weave too. Maybe it has
> something to do with it, maybe it doesn't. Haven't got any more trouble
> since I fixed it though.
> Glad I could help :)
I'm using Weave too, don't think that's a coincidence.
Bye, Andi
hi all,
Is there a way to get the visitor's location represented as zip code
(not only in US)? I have no idea how to do this, please help.
Thanks,
James
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
Say I have 2 classes as:
class Bar(models.Model):
prop = IntegerField()
class Foo(models.Model):
bar = ManyToManyField(Bar)
I want to return a QuerySet containing model instances of bar that
match the query:
QuerySetOfFoos.objects.filter(bar__prop__gt=0)
Is there an easy way to do this?
Hi folks --
I'm planning on mass hosting a SaaS project built on Django, using
Apache and mod_wsgi. There will be hundreds of domains running off a
single copy of the project code; each domain has a different Site ID
and settings file, and can have its own Virtual Host (I'm also willing
to serve
Hi,
I've been trying to build facebook apps on Google App Engine using the
Google App Engine Helper.
I've set up dyndns to point to my network so I can develop locally,
but it's not working as planned.
When I try to go to my domain Ex: something.gotdns.org:8000 or go to
the facebook app that has
Hi,
I've been trying to build facebook apps on Google App Engine using the
Google App Engine Helper.
I've set up dyndns to point to my network so I can develop locally,
but it's not working as planned.
When I try to go to my domain Ex: something.gotdns.org:8000 or go to
the facebook app that has
Thanks, Euan!
Margie
On Jul 11, 2:00 am, "euan.godd...@googlemail.com"
wrote:
> This is a standard encode/decode situation you are descibing. Django
> automatically decodes the GET string the the browser encodes. If you
> need spaces, then they wil be encoded and decoded appropriately, so
> don
Does anyone know how to display certain template items based on url?
For example.
http://localhost/aeditpage/varX/
http://localhost/anothereditpage/varY
I want to check if it aeditpage or anothereditpage before I decide
what pieces of the template to dis
There are various tools to map a visitor's IP to their zip code:
http://www.google.com/search?hl=en&q=ip+to+zip
That would be where I would start with such a project...
On Jul 12, 7:53 am, haibin wrote:
> hi all,
>
> Is there a way to get the visitor's location represented as zip code
> (not only
Hello,
I am having an odd issue updating a table (I don't have this issue on
any other table)... When I update the value it gets wrapped in
('NEW_VALUE',) when it should just be NEW_VALUE.
Current Value in DB Desired New Value -- Before Saving
PerezPerez
Current Value
Hello,
I am currently encountering an issue and have been unable to figure
out a solution by myself or through the internet.
Here is what I'm trying to do :
I would like to setup profiles for the two different categories of
people who are going to run my website (something like teacher/
students
I'm currently writing a blog framework in django, and I have it up an
running (on www.presskanne.com). During the last 20 hours or so, I
have gotten about 60 emails with error 500 messages. They seem to
originate from different pages all over the site, but they all have
two things in common:
The t
On 07/12/2010 01:10 PM, Tor Nordam wrote:
So my question is if there is anything in particular which might cause
the page to crash when a searchbot tries to load it, but not do the
same for a regular user.
Well, additional information about the HTTP transaction might
help. Bots may or may not
I am working on a validation that will require a field be filled in if
it is another field enters on of three values:
For example:
I have a form
class myform(forms.Modelform):
field1 = forms.CharField
field2 = forms.Charfield
field3_type = forms.CharField(choices=choices)
field3
I want django to return μ instead of the html enscaped form μ in my
views, because I need it to return a reportlab template wich doesn't handle
the escaped version.
I already have an unicode template and unicode output, so I only those
characters not to convert to their HTML version.
Is it possi
Try mark_safe.
from django.utils.safestring import mark_safe
mark_safe('μ')
2010/7/12 Alessandro Ronchi
> I want django to return μ instead of the html enscaped form μ in my
> views, because I need it to return a reportlab template wich doesn't handle
> the escaped version.
> I already have
For this code:
class Title(models.Model):
title = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.title
def was_published_today(self):
return self.pub_date.date()
Derek,
Cool, thanks for that. I wonder if something similar would work on
passing values to a formset...
Erich
On Jul 8, 1:17 am, derek wrote:
> On Jul 7, 12:44 am, Erich wrote:
>
> > I am using create_update.create_object to handle my forms (generic
> > forms both use modelforms). I have two
Hi, I know this comes late, but for the future reference:
My problem was that I had "locale" directory in *project* directory,
"myproject/locale" but I didn't have myproject in INSTALLED_APPS.
So the thing that contains localization strings *must* be ALSO in the
INSTALLED_APPS = [..., 'myproject'
Thank you for your reply. I have now tried disabling cookies,
javascript and referer, and I was still unable to reproduce any of the
errors.
Here is a sample errormessage, with everything included:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/django/core/handl
Rupert,
Without knowing what you are aiming to accomplish, my advice might not
be pertinent. However, it looks like your models could be rearranged
like this:
class Question(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
class
2010/7/12 Alessandro Ronchi :
> I want django to return μ instead of the html enscaped form μ in my
> views, because I need it to return a reportlab template wich doesn't handle
> the escaped version.
> I already have an unicode template and unicode output, so I only those
> characters not to con
Thanks for replying.
I'm ultimately trying to create a feedback form where there is a list
of say 10 questions with 5 choices for response to each question. It
also needs to be editable in the admin (and I can't get forms to be
editable in the admin).
On Jul 12, 5:11 pm, Rodion Raskolnikiv wrote
I think a choice field is probably best, then you can customize the
presentation in a forms file.
class Question(models.Model):
q_cjoices = (
('choice1', 'choice1'),
('choice2', 'choice2'),
('choice3', 'choice3'),
('choice4', 'choice4'),
('choice5', 'choice5'),
)
title
Hi!
Since I update my django-registration installation to be able to use
signals, I lost my templates to change password, reset password... There is
now the default django admin templates to do that. How can I use again my
templates?
Do you need some paste or more info?
This is my urls.py, it is
On Jul 13, 1:04 am, ringemup wrote:
> Hi folks --
>
> I'm planning on mass hosting a SaaS project built on Django, using
> Apache and mod_wsgi. There will be hundreds of domains running off a
> single copy of the project code; each domain has a different Site ID
> and settings file, and can hav
I have this query, trying to get the next game in the future.
today = datetime.datetime.now()
next_game = Game.objects.filter(date__gt=today).order_by('date')[:1]
I need to use .get() if possible, instead of .filter() how can I do
this?
--
You received this message because you are subscribed to
Why does it matter?
You could just say next_game[0] instead.
J
On Jul 12, 4:28 pm, Chris McComas wrote:
> I have this query, trying to get the next game in the future.
>
> today = datetime.datetime.now()
> next_game = Game.objects.filter(date__gt=today).order_by('date')[:1]
>
> I need to use .g
I've added a new tutorial: A Photo Organizer and Sharing App to
my Django by Example site. As always, feedback is appreciated.
This tutorial illustrates the use of tags, ratings, albums, sharing,
searching, filtering and sorting.
http://LightBird.net/dbe/
-ak
--
You received this messag
Just checking, if anyone can point me to a good solution to it. Or
logging to sockets as in official doc is the best solution.
On Jul 11, 9:35 am, ydjango wrote:
> Python logging has know limitation with multiple processes logging to
> same file.
> (I am using rotatingfilehandler.)
>
> Which in c
Hi all,
I just recently deployed my django site from the included development
webserver to a production server with lighttpd. I'm new to both
Lighttpd and Django so forgive my ignorance. When using the
development webserver, I can see streaming files in the tmp directory
grow if the uploaded fil
What is wrong with letting it log to stderr and thus the Apache error
log files?
Graham
On Jul 13, 11:52 am, ydjango wrote:
> Just checking, if anyone can point me to a good solution to it. Or
> logging to sockets as in official doc is the best solution.
>
> On Jul 11, 9:35 am, ydjango wrote:
>
You mean by using simple print statements. I used to do that when I
was on mod_python.
Then I moved to using mod_wsgi and read somewhere that mod_wsgi does
not log print statements.
I may have been mistaken.
On Jul 12, 8:18 pm, Graham Dumpleton
wrote:
> What is wrong with letting it log to stde
After reading your message, I googled and found this from you -
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
I guess this is what you are referring to.
does it mean -
1) any uncaught exceptions from my code running under mod_wsgi are
automatically logged in apache log files?
or
2
Nevermind, I finally found my answer after hours of searching in this
thread:
http://forum.lighttpd.net/topic/1142
On Jul 12, 11:08 pm, Chris wrote:
> Hi all,
>
> I just recently deployed my django site from the included development
> webserver to a production server with lighttpd. I'm new to bo
Are you wanting to log errors that occur in your django site? If that's the
case I'd recommend starting with simple tools like django's email logging and
working up to more sophisticated tools like django-db-log or arecibo.
If you want to debug development code or you will find python's built in
What is stopping you from doing the cookie check itself with
JavaScript which is quite capable to do that :-)
http://www.quirksmode.org/js/cookies.html
http://plugins.jquery.com/project/cookie
On Wed, Jul 7, 2010 at 11:55 AM, euan.godd...@googlemail.com
wrote:
> You'll need to do the test in the
On Jul 13, 2:00 pm, ydjango wrote:
> After reading your message, I googled and found this from you -
>
> http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
>
> I guess this is what you are referring to.
>
> does it mean -
> 1) any uncaught exceptions from my code running under mod_wsgi ar
66 matches
Mail list logo