HI,
I am using django mptt and I also want to use fixtures with my
registered model. However, since mptt inserts fields that are NOT
NULL, I was not able to do so.
I found this link
http://code.google.com/p/django-mptt/source/browse/trunk/docs/models.txt?r=100
where it was described that I have t
In certain cases, I want to have the login page return a user to the
page he/she was on when they clicked login. My thought is to use
{{ request.META.HTTP_REFERER }}, but I'm not sure where to fit it. I'm
using the django-registration package, so I have a urls.py like so:
from django.contrib.auth
>From my code,
try:
user = User.objects.get(username__iexact =
self.cleaned_data['username'])
except User.DoesNotExist, KeyError:
raise forms.ValidationError('Invalid username, please try
again.')
if not user.check_password(self.cleaned_data['passw
hello group,
I am writing a blog application. I am not using generic view
as I have customized things. Now I wrote a helper.py in which I have
def get_post(year, month, day, slug):
year, month, day = int(year), int(month), int(day)
try:
return Post.objects.get(
Hi,
I have written about how to build a Simple Django blog with appengine.
You can find the tutorial here,
http://www.42topics.com/dumps/appengine/doc.html.
This documents what I learnt playing with appengine yesterday, and is
very much a work in progress. This doc is released under CreateCommon
I am trying create a custom model field that will create 2 field
instances, a CharField and a booleanField. I am using this with
signals and dispatchers to insert data entered from this custom field
into another model/table that contains a boolean and char field. my
question is: how can I return 2
I have a form:
class TestForm(forms.Form):
name = forms.CharField(max_length=128, label="Test name")
tasks = forms.ModelMultipleChoiceField(required=False,
label="Tasks", widget=forms.CheckboxSelectMultiple,
queryset=Task.objects.none())
The goal is to have checkboxes for a set of models
from django.core.management import commands
this gives everything :)
On Apr 8, 10:01 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote:
> Lee,
> Take a look at the stuff in django.core.management.
>
> You should be able to import the methods or classes just like any python
> module.
>
> /alex
>
> On T
thx alex!
On Apr 8, 10:01 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote:
> Lee,
> Take a look at the stuff in django.core.management.
>
> You should be able to import the methods or classes just like any python
> module.
>
> /alex
>
> On Tue, Apr 8, 2008 at 8:57 PM, Lee Connell <[EMAIL PROTECTED]>
On Mon, 2008-04-07 at 21:49 -0700, shabda wrote:
> I have a call like,
>
> crsr = connection.cursor()
> crsr.execute('DROP TABLE IF EXISTS news_linksearch')
>
> when table news_linksearch does not exists this would lead to a mysql
> warning, (Not an error, as it has a IF EXISTS clause), but th
On Mon, 2008-04-07 at 07:29 -0700, shabda wrote:
> So is there a cleaner way to work in form.clean instead of doing
> if for.cleaned_datahas_key(field):
> for every element?
It depends what you want to do in the clean() method. The example you
gave in your first post in this thread is not a good
Lee,
Take a look at the stuff in django.core.management.
You should be able to import the methods or classes just like any python module.
/alex
On Tue, Apr 8, 2008 at 8:57 PM, Lee Connell <[EMAIL PROTECTED]> wrote:
>
> I am making an app that sets the django_settings_module manually so
> that
I am making an app that sets the django_settings_module manually so
that I can use django ORM to access database. So I am not using
manage.py to create or setup an app. how do I get access to syncdb,
validate, sql, inspectdb etc... from within my module since I do not
have manage.py?
--~--~-
Satchmo doesn't have exactly what you are looking for but maybe the data we
have in our l10n application will be useful. You can see the models and the
existing data here -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/l10n
-Chris
--~--~-~--~~~---~--
On Tue, Apr 8, 2008 at 6:14 PM, jeffself <[EMAIL PROTECTED]> wrote:
>
> I'm sure everyone has created models that contain city, state,
> country, and other location information. Is there an app already
> written for Django that I can import?
There may be something out there to do this, but th
Brox ... Nice writeup! Many thanks!
Now for my thoughts...
I have been using PyTables as an adjunct datastore along with
the Django ORM for almost a year. To me, BigTable looks a lot
like PyTables and, as such, I know that it can be be a great
supplement to the Django ORM in certain scenarios.
> On Tue, Apr 8, 2008 at 12:12 PM, Heidi Bustamante <
>
> [EMAIL PROTECTED]> wrote:
>
> > Hello, anyone has an example of how to upload images, I also doubt if
> > the same thing to upload any files (pdf, zip, etc.)?
>
> > Heidi
I join the call, I try to take a form that allows uploading images
Thanks Eric,
One thing I'm struggling with is figuring out where to start coding :P
All the other backends start by initializing a connection and then
handling things through a cursor as far as I can tell. GQL doesn't
really need any of this, so can I skip it altogether or should I
emulate a cur
I'm sure everyone has created models that contain city, state,
country, and other location information. Is there an app already
written for Django that I can import?
I want to be able to select either a country followed by a state
followed by a city (all filtered) or enter a postal code. I woul
Found out why I got this error. I forgot to return a value for the
validated field. Because this field was prohibited of being NULL, I
got an error.
I achieved what I wanted with the following code:
if self.initial['email'] != self.cleaned_data['email']:
try:
user =
U
Doh! I see that you're using the queryset-refactor branch already.
That teaches me to post before reading.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
FWIW, I would probably start out with the queryset-refactor branch, as
it has made some great strides in increasing database modularity.
Looking at the dummy and sqlite backends in that branch should be a
pretty good starting point. Remember than on Django trunk (or
queryset-refactor), the DATAB
> Within the ModelForm class just refer to self.initial['field_name'].
Yeah, that's the one I needed! I got a strange error now though. When
I try to check if the values have changed with:
if self.initial['email'] != self.cleaned_data['email']:
I get an exception:
null value in column "email" v
This would be great, I'd love to see this although I'm not really
experienced enough to help much.
On Apr 8, 10:21 am, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote:
> Anybody interested in starting an app engine/big table db backend
> project? Should be interesting and might help pave the way fo
On Apr 8, 11:54 am, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> what is the best way for application specific settings?
>
> Up to now I do it like this:
>
> {{{
> # settings.py
> import APPNAME
>
> }}}
>
> APPNAME is a small python file where I store the values. Most of the
> time there
Hi,
>
> I have to create an app with django that allows users in front end to
> create their own forms with a number variable of fields and a variable
> types of field
>
> User can create many programs with many different fileds.
> First, I thought tha 3 tables are good :
> - program_form (name /
Never having looked under the hood of the database backends, my head
is swimming a little bit trying to find a place to get started. I'm
working on the queryset-refactor branch and using the sqlite3 backend
as a template.
Any devs that can point me in the right direction?
--
Pete
On Tue, Apr
I was able to get a simple Django application up and running:
http://blog.broxrost.com/index.php/2008/04/08/django-on-google-app-engine/
I agree with the other posters that the model API seems a bit lacking.
Without having studied it too closely, it seems that using GQL in
model queries is the n
On Apr 8, 10:58 am, shabda <[EMAIL PROTECTED]> wrote:
> I am trying to followhttp://code.google.com/appengine/articles/django.html
>
> Which has a line
> # Log errors.
> django.dispatch.dispatcher.connect(
>log_exception, django.core.signals.got_request_exception)
>
> but log_exception is not
Look at the documentation for the models
http://www.djangoproject.com/documentation/model-api/ and for new forms
http://www.djangoproject.com/documentation/newforms/.
All your answers should be there.
On Tue, Apr 8, 2008 at 12:12 PM, Heidi Bustamante <
[EMAIL PROTECTED]> wrote:
>
> Hello, anyo
Hi,
I don't want any help on how to write my model but I just want to have
your opinion about how to do this by the simpliest way. I'm a django
beginner.
I have to create an app with django that allows users in front end to
create their own forms with a number variable of fields and a variable
t
> So, my specific answer is: use the current revision. update when/if you need
> to.
Thanks for the advice, both of you - we'll go with the current
revision and freeze it there unless we find any problems.
Thanks again,
Steve
--~--~-~--~~~---~--~~
You received t
shabda wrote:
> I am trying to follow http://code.google.com/appengine/articles/django.html
>
> Which has a line
> # Log errors.
> django.dispatch.dispatcher.connect(
>log_exception, django.core.signals.got_request_exception)
>
> but log_exception is not defined/imported, so it gives a NameE
These question are better for BIgtable forum than Django forum.
But If I consider moving to Bigtable in future, I need some visibility
into
1) Is BIGTABLE fully acid complaint? from what I have read it is not
atleast in some cases.
2) in what cases is it not acid complaint? Moving from RDMBS wor
On Tue, Apr 8, 2008 at 12:36 PM, ydjango <[EMAIL PROTECTED]> wrote:
> It pretty much excludes data driven and data intensive applications
> where data consistency and reliability is very critical (ACID
> properties).
Yeah, Google certainly use their platform to do any data-driven or
data-inten
Claudio Escudero wrote:
> Hi,
>
> Someone knows there is any middleware that works with Ajax, similar to
> RJS of Ruby on Rails?
>
Do you mean middleware specifically written for django? If so not sure,
but it might be worth looking at dojo (http://www.dojotoolkit.org/). It
is a javascript tool
On Tue, Apr 8, 2008 at 2:36 PM, ydjango <[EMAIL PROTECTED]> wrote:
>
> I agree, with no support for Django Models and relational databases
> like mysql and postgressSQl, Google Apps Engine usefulness appears to
> be limited to more Content Management kind of web application.
> It pretty much e
Sarah Johns wrote:
> Hello, im a newbie so sorry to bother anyone, but i have problems with
> my site, i cant see the videos that i attached. whats wrong? Thanks
> for the help, the site adress is this: http://www.videoriporter.hu
>
To be honest I thought your message was cleverly targetted spa
I agree, with no support for Django Models and relational databases
like mysql and postgressSQl, Google Apps Engine usefulness appears to
be limited to more Content Management kind of web application.
It pretty much excludes data driven and data intensive applications
where data consistency and re
I've posted a message [1] on google's App Engine group asking for some
insight into the DataStore <--> Django Models mapping problem.
Hopefully it won't get lost amid the influx of emails on that list.
Cheers,
Mike
1:
http://groups.google.com/group/google-appengine/browse_thread/thread/7f26edc0
Hi.
I'm trying to upload files to a directory that is not under the web
server root, for security reasons.
I wonder if is it possible to override the model's "get_FOO_url()"
method so that It will return some form of encoded url.
I've already achieved this by defining in my model's class a
_
Hello, anyone has an example of how to upload images, I also doubt if
the same thing to upload any files (pdf, zip, etc.)?
Heidi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
And now for those famous words ... works for me.
I'm using WinXP / FF 2.0.0.13 / Flash 9
Either you fixed the problem since you first posted, or there is
something messed up on your desktop/laptop.
By the way, I don't speak Hungarian, but I really like the look and
feel of your site. Nicely done
On Tue, Apr 8, 2008 at 11:10 AM, Petar <[EMAIL PROTECTED]> wrote:
>
> Karen,
>
> this is a good solution if I wanted to do the validation inside the
> view, where this value is available.
> However, I want to raise a ValidationError inside the ModelForm class.
> Therefore I need this value inside
* Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-04-06 20:30 +0200]:
>
> Hello,
>
> With the development server, I use the following line to manage static
> content :
>
> (r'^site_media/(?P.*)$', 'django.views.static.serve',
> {'document_root': '/var/www/nicolas/sites/NetPool/web/media/'}),
Hi,
what is the best way for application specific settings?
Up to now I do it like this:
{{{
# settings.py
import APPNAME
}}}
APPNAME is a small python file where I store the values. Most of the
time there are only some lines like this: var=value.
Thomas
--
Thomas Guettler, http://www.tho
Are you asking how to run a standalone Django script? If so, the
following gives you a fully initialized Django environment.
standalone_script.py
#!/usr/bin/env python
from django.core.management import setup_environ
import settings
setup_environ(settings)
# Your python/Django cod
Claudio,
Your question made me look at RJS (which I had never heard of before)
and at some stuff I did for a recently completed site. I think a rev
0.1 of something like RJS could be done in a weekend. I'll email you
in the next day or so with some thoughts.
Cheers,
Peter
--~--~-~--~
we would give our lowest price, www.alimamatrade.net
1. Before shipping the goods ,we check the cutting/stitching/high
frequency/embroidery/assembly/cement carefully, until the goods are
OK.
2. payment:western union,moneygram,bank transfer (T/T by bank).
3. shipping method:EMS,TNT,DHL other shippi
Karen,
this is a good solution if I wanted to do the validation inside the
view, where this value is available.
However, I want to raise a ValidationError inside the ModelForm class.
Therefore I need this value inside this class.
Is their a way to get a similar value in the newforms ModelForm cl
Le 8 avr. 08 à 14:16, Marc Garcia a écrit :
>
> For know I think that it's too early to migrate, because probably
> isn't a very mature project, and specially because it's working on
> django 0.96 (and most django users use trunk or sometimes newforms-
> admin, like me).
You can use your own ver
On Tue, Apr 8, 2008 at 10:21 AM, Peter Baumgartner <[EMAIL PROTECTED]> wrote:
> Anybody interested in starting an app engine/big table db backend
> project? Should be interesting and might help pave the way for some
> other non-traditional databases like CouchDB or SimpleDB. While I'm
> not a
Anybody interested in starting an app engine/big table db backend
project? Should be interesting and might help pave the way for some
other non-traditional databases like CouchDB or SimpleDB. While I'm
not a database expert, I'm sure I can chip in.
It seems like most of the basic functionality is
Smells like a google summer of code project to me :)
Would it not be possible to simulate joins in the ORM by doing multiple
requests? Like I said I don't know the backend code, so this could be either
trivial or impossible and I wouldn't know the difference!!
Mat
-Original Message-
Fr
Bigtable doesn't support joins so its probably going to be quite hard
to integrate django ORM with it. Could be a fun little project though.
You would have to manually do the joins by doing multiple bigtable
requests. If I have some free time over the summer I tempted to have a
bash at it but it w
Ditto I haven't got a clue about how qs-rf works behind the scenes, only
catch I can see is bigtable doesn't support joins (as I understand it), so
that could be a limitation, but I guess multiple db requests isn't beyond
reason.
You can certainly run your own django version on appengine, but wit
On Tue, Apr 8, 2008 at 4:34 AM, David Larlet <[EMAIL PROTECTED]> wrote:
> Pycon fr in Paris: http://fr.pycon.org/
> I have 2 talks (in French):
> * Why django? (for beginners)
> * Daily Django: quality and performances
If I could make it to France, and spoke French, I'd so be there.
-Gul
--
On Tue, Apr 8, 2008 at 8:40 AM, Mat <[EMAIL PROTECTED]> wrote:
> Why don't we start a new branch (probably off query-set) to include bigtable
> support into the ORM, shouldn't all other modules work after the model
> system is updated?
They should, although it shouldn't need a whole new branch
Thank you Alex, that's what I needed
On Apr 7, 7:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Slugs,http://www.djangoproject.com/documentation/model-api/#slugfield
>
> On Apr 7, 5:29 pm, garrido <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> > Forgive me if this is a stupid ques
Why don't we start a new branch (probably off query-set) to include bigtable
support into the ORM, shouldn't all other modules work after the model
system is updated?
Mat
-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Marty Alchin
Sent: 08 A
On Tue, Apr 8, 2008 at 8:16 AM, Marc Garcia <[EMAIL PROTECTED]> wrote:
> Well, it seems that you just need to migrate your django models to
> appengine models.
The trouble is who "you" are. I make use of a number of third-party
apps, and I don't much enjoy the idea of having to migrate *their*
Well, it seems that you just need to migrate your django models to
appengine models. Anyway, I think that there is an important day for
django. I haven't enought time to check it all, but I think in a close
future we'll be able to run our django 1.0 projects on google
infrastructure.
For know I t
On Tue, Apr 8, 2008 at 2:28 AM, Ramin Firoozye <[EMAIL PROTECTED]> wrote:
> Caveat: there's a waiting list for signing up.
Another caveat, according to that same page you linked:
"Since App Engine does not support Django models, leave all DATABASE_*
settings set to an empty string. The authenti
Hi,
how can I insert initial data from a script? Static SQL files don't work
for my case.
Background: I need to load some SQL (tsearch2 (postgresql)) if the
database version
is smaller than 8.3 ...
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler
On Tue, Apr 8, 2008 at 4:18 AM, Mat <[EMAIL PROTECTED]> wrote:
> From what I've read django seems limited on appengine, no models, I'm
> assuming this is because the ORM still needs porting, is anyone going to
> look at this, or is the plan to just go with google models? Any thoughts, or
> am
I wish.currently in the long line waiting for an invite
>From what I've read django seems limited on appengine, no models, I'm
assuming this is because the ORM still needs porting, is anyone going to
look at this, or is the plan to just go with google models? Any thoughts, or
am I totally
I am trying to follow http://code.google.com/appengine/articles/django.html
Which has a line
# Log errors.
django.dispatch.dispatcher.connect(
log_exception, django.core.signals.got_request_exception)
but log_exception is not defined/imported, so it gives a NameError. I
guess they left the co
Le 8 avr. 08 à 10:22, Jarek Zgoda a écrit :
>
> Simone Brunozzi napisał(a):
>> Greetings,
>> I'm looking for conferences or events about Django, Dabatases, Mysql,
>> PHP,
>> Python, Ruby in Europe in 2008.
>> Do you have any suggestions?
>
> RuPy in Poznan, PL next weekend
> EuroPython in Vilnius
Simone Brunozzi napisał(a):
> Greetings,
> I'm looking for conferences or events about Django, Dabatases, Mysql,
> PHP,
> Python, Ruby in Europe in 2008.
> Do you have any suggestions?
RuPy in Poznan, PL next weekend
EuroPython in Vilnius, LT july
--
Jarek Zgoda
Skype: jzgoda | GTalk: [EMAIL PR
Greetings,
I'm looking for conferences or events about Django, Dabatases, Mysql,
PHP,
Python, Ruby in Europe in 2008.
Do you have any suggestions?
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
Hello, im a newbie so sorry to bother anyone, but i have problems with
my site, i cant see the videos that i attached. whats wrong? Thanks
for the help, the site adress is this: http://www.videoriporter.hu
--~--~-~--~~~---~--~~
You received this message because you
I like that concept.
How does one go about including media files required for an
application to function then?
(I don't really know how to do this in the project/app configuration
either)
James Bennett wrote:
> On Tue, Apr 8, 2008 at 1:38 AM, jurian <[EMAIL PROTECTED]> wrote:
> > Are django app
On Tue, Apr 8, 2008 at 1:45 AM, Graham Dumpleton
<[EMAIL PROTECTED]> wrote:
> Can someone who has access do me a favour and write a hello world
> application which echos back the WSGI environment.
> [...]
> I am interested to see what the values are for:
>
> wsgi.multiprocess
> wsgi.multit
73 matches
Mail list logo