On Mon, Feb 16, 2009 at 2:47 AM, DrMeers wrote:
>
> I have developed a Django site for an open source project, with
> contributors around the globe.
>
> A brief aside/background: I have used django-cms to store the majority
> of the content for the site, but rather than
I have developed a Django site for an open source project, with
contributors around the globe.
A brief aside/background: I have used django-cms to store the majority
of the content for the site, but rather than adopting its usual tactic
of translating a whole page at a time, have used {% trans
Dear Malcom,
thanks for your answer, but as I wrote in my first post altering
templates is not a satisfying solution for me. By altering templates I
have to define all permissions by hand. I thought it must be possible
to define permission - as for models - in the table
auth_permission...
By the
Hi,
Does anyone know if Django 1.0 is already supported out-of-the-box on
the Google app engine?
Thanks!
Yaniv
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
On Mon, Feb 16, 2009 at 1:37 AM, jfmxl wrote:
>
> Hi,
>
> I read through the tutorials and thank you very much! They are well
> designed and very helpful.
>
> I noticed that the models' database definitions created using MySQL
> always create MyISAM tables, but to use functional
Hi,
I read through the tutorials and thank you very much! They are well
designed and very helpful.
I noticed that the models' database definitions created using MySQL
always create MyISAM tables, but to use functional constraints on
foreign keys one must use InnoDB tables in MySQL.
Is there
In case anyone else in interested I whipped up this simple script that
seems to do the job.
http://dpaste.com/121117/
It basically works like svn commit but looks thru all of directories
under your current directory for manage.py files. If it finds one it
runs manage.py test. If all tests pass
>
> You are misunderstanding what the set_language view does. That view sets
> up the client's locale cookie so that whenever a view is processed for
> that particular web client, it will be done in the locale of "de" (in
> your case).
Ok. Thanks for making this clear.
>
> It does not change
On Sun, 2009-02-15 at 20:41 -0500, Alex Gaynor wrote:
[...]
>
> select_related doesn't traverse the reverse relation from inheritance
> either, there's a ticket about this:
> http://code.djangoproject.com/ticket/7270 in any event, how can your
> application depend on that,
On Mon, 2009-02-16 at 02:03 +0100, Andrási László (g) wrote:
> Hi,
>
> Sorry for my english.
> I want to implement the following structure to all of my models.
> I have two db tables for every model a primary and a modifications
> ( for logging)
>
> Example:
> CONTENT
> id int(10) primary key
On Sun, Feb 15, 2009 at 8:38 PM, Trey wrote:
>
> Thanks Malcom,
>
> I suspected this to be the answer, however since I just finished
> refactoring all of my field references to stop referencing the child
> model explicitly to give inheritance a try, I was hoping that
Thanks Malcom,
I suspected this to be the answer, however since I just finished
refactoring all of my field references to stop referencing the child
model explicitly to give inheritance a try, I was hoping that wouldn't
be the case :)
There is one thing about OneToOne fields that isn't exactly
Hi,
Sorry for my english.
I want to implement the following structure to all of my models.
I have two db tables for every model a primary and a modifications ( for
logging)
Example:
CONTENT
id int(10) primary key (autincrement)
cre_date datetime
mod_date datetime
body longtext
status
On Sun, 2009-02-15 at 16:39 -0800, Trey wrote:
> I thought I would ask the question here first before going to devs
> with it. Is it possible to update a model without updating that models
> parent table?
No. Django doesn't do anything like "damage tracking" to determine which
fields have
I realise going through Google that this has been hashed over before,
but nevertheless, I want to know if there is any new thought on this.
Ever since I removed project references from imports in my code, I
have noticed a new problem whereby many functions connected to signals
are being called
I thought I would ask the question here first before going to devs
with it. Is it possible to update a model without updating that models
parent table?
A very small example:
class Aye(model):
a = field
class Bee(Aye):
b = field
o = Bee.objects.get(k)
o.b = 3
o.save()
In my code this
hi and thanks for advice. however it doesn't seems like the problem
because i did set all my python paths correctly and called
setup_environ.
it was like.
this was the top of script before i solved the problem
>>DIR=os.path.abspath(__file__)
>>sys.path.append(imp.find_module("django")[1])
On Feb 15, 2009, at 3:28 PM, Malcolm Tredinnick wrote:
>
> On Sun, 2009-02-15 at 08:30 -0800, mermer wrote:
>> OK - I've found the problem. I'm using Firefox (Version 3.06) but
>> the
>> problem is actually with Firebug, which I've been using to view the
>> headers.
>>
>> With Firebug
On Feb 16, 10:19 am, MrBodjangles wrote:
> I am going thru the sample blog application introduced in the book
> "Python Web Development with Django (covers Django 1.0)".
>
> Before getting too deep into the book, I decided I wanted to first
> ensure that the application
I am going thru the sample blog application introduced in the book
"Python Web Development with Django (covers Django 1.0)".
Before getting too deep into the book, I decided I wanted to first
ensure that the application will render in apache since I want to
include an image at the bottom of the
On Sun, 2009-02-15 at 15:23 -0800, Deniz Dogan wrote:
> Hi
>
> I'm developing a website which will have a small menu at the top which
> has a "login" link in it. However, if the user has already logged in,
> it should be a "logout" link instead. This menu is part of a base
> template which is
On Sun, 2009-02-15 at 08:30 -0800, mermer wrote:
> OK - I've found the problem. I'm using Firefox (Version 3.06) but the
> problem is actually with Firebug, which I've been using to view the
> headers.
>
> With Firebug disabled, it works fine (viewing the headers through
> another app).
Hi
I'm developing a website which will have a small menu at the top which
has a "login" link in it. However, if the user has already logged in,
it should be a "logout" link instead. This menu is part of a base
template which is extended in all of my other templates.
So to for the templates to
On Sun, 2009-02-15 at 01:57 -0800, Jacob Rigby wrote:
> The queue solution that Malcolm is talking about requires 3 types of
> processes as far as I can tell:
> - the fcgi/django processes that will be pushing jobs onto the
> queue
> - a manager process that is started independently from
On Sun, 2009-02-15 at 23:50 +0200, makka...@gmail.com wrote:
> On Sunday 15 February 2009 10:39:26 pm slav0nic wrote:
> > if u need start new thread - it will be work, but for more "djngo way"
> > use signals
>
> Well that is not what i'm concerned about, i asked if a view is accessed only
> by
On Sun, 2009-02-15 at 13:29 -0800, peschler wrote:
> Hi,
>
> i'm currently writing unit tests for an application where I need to
> change the language in the test client.
>
> I tried using the "django.views.i18n.set_language" view within a test
> case like so:
>
> ---
> def setUp(self):
>
On Sun, 2009-02-15 at 11:06 -0800, Robert wrote:
> Hi,
>
> how can I add views to the admin interface that
> 1. they are also so 'well-integrated' in the admin interface like
> models
> 2. I can also define permissions for them like for a model
Adding views to the admin is easy, since a view is
On Sun, Feb 15, 2009 at 6:02 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Sun, 2009-02-15 at 15:09 -0500, Alex Gaynor wrote:
> >
> >
> > On Sun, Feb 15, 2009 at 3:07 PM, nivhab wrote:
> >
> > Thanks for the fast reply!
> > This generates
On Sun, 2009-02-15 at 15:09 -0500, Alex Gaynor wrote:
>
>
> On Sun, Feb 15, 2009 at 3:07 PM, nivhab wrote:
>
> Thanks for the fast reply!
> This generates the following error:
> 'for' statements with five words should end in 'reversed'
>
On Sun, Feb 15, 2009 at 5:09 PM, Gabor Nyers wrote:
>
> Hi all,
>
> I'm learning Django (and for that matter Python) for 2 weeks now and bumped
> into a problem I've been struggling with a
> few days. Apologies if it's obvious, but I've been looking at the Django
>
Hi,
You need to define the settings file on top of the python path and
the path to your settings file. Start with the xample in the post
below...
http://blog.awarelabs.com/?p=15
Once you get it to work, back out some of the paths until you find
the minimum you need. You will need to type
Hi all,
I'm learning Django (and for that matter Python) for 2 weeks now and bumped
into a problem I've been struggling with a
few days. Apologies if it's obvious, but I've been looking at the Django
documentation for 2 days now. It might be
there, but in that case I think I keep missing it.
Have you learned ajax?
On Feb 15, 9:32 am, arbi wrote:
> Hi,
>
> In my template I call a javascript function that returns a dictionary.
> I would like to bring back the 2 elements of this dictionary in my
> view to make some work on it.
> How to do it? Use forms? how?
>
>
On Sunday 15 February 2009 10:39:26 pm slav0nic wrote:
> if u need start new thread - it will be work, but for more "djngo way"
> use signals
Well that is not what i'm concerned about, i asked if a view is accessed only
by a one client. I dont want 2 views to acces the same xml and have the
Hi,
i'm currently writing unit tests for an application where I need to
change the language in the test client.
I tried using the "django.views.i18n.set_language" view within a test
case like so:
---
def setUp(self):
self.client.post('/set_language/', data={'language': 'de'})
Hi
I've got a problem printing - I'm using the win32 API:
win32api.ShellExecute (0, "print", myfile, None, ".", 0)
This works just fine if I don't run Django through apache but when I
use apache it doesn't work. I don't get an error just nothing in the
print queue. I've set the apache
if u need start new thread - it will be work, but for more "djngo way"
use signals
On 15 фев, 19:59, makka...@gmail.com wrote:
> Hi all i generate some xml files for my gallery app on every new request (i
> use cache also). That mean i do some file operation on most of gallery
> requests. I'm
Well, I read that short paragraph but I don't understand how this
should work...
Is it possible that you post some code how you solved that problem?
Thanks a lot
Robert
On 15 Feb., 21:13, Brian Neal wrote:
> On Feb 15, 1:06 pm, Robert wrote:
>
> >
On Feb 15, 1:06 pm, Robert wrote:
> Hi,
>
> how can I add views to the admin interface that
> 1. they are also so 'well-integrated' in the admin interface like
> models
> 2. I can also define permissions for them like for a model
>
> I know that it's possible to change
On Sun, Feb 15, 2009 at 3:07 PM, nivhab wrote:
>
> Thanks for the fast reply!
> This generates the following error:
> 'for' statements with five words should end in 'reversed'
>
> And as I have just found out, this error cannot be solved in 0.96
> version. So it seems
Thanks for the fast reply!
This generates the following error:
'for' statements with five words should end in 'reversed'
And as I have just found out, this error cannot be solved in 0.96
version. So it seems there is no way of doing such and iteration in
this version. Only 1.0 or DEV versions.
On Sun, Feb 15, 2009 at 2:47 PM, nivhab wrote:
>
> Does anyone know of a way to traverse a list in templates in a dynamic
> way?
> Let's say I have the following list:
> {'message': [u'This field is required.'], 'sender': [u'Enter a valid e-
> mail address.']}
>
> and I do
If you'd like JavaScript to calculate values before you submit the
form then do the following:
1. Add a "onSubmit" attribute on your "form" tag which calls a JS
function like:
2. In the implementation of that function calculate whatever you need
and plant the result into a hidden input field
Does anyone know of a way to traverse a list in templates in a dynamic
way?
Let's say I have the following list:
{'message': [u'This field is required.'], 'sender': [u'Enter a valid e-
mail address.']}
and I do not know in advance the keys for this list. I would like to
iterate through it and
Hi,
how can I add views to the admin interface that
1. they are also so 'well-integrated' in the admin interface like
models
2. I can also define permissions for them like for a model
I know that it's possible to change a template (i.e. index.html) and
add there the code, but that doesn't
i added
from django.db.models.loading import get_apps
get_apps()
before calling models
and it solved the problem
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
On 14/02/09 Rick Kitts said:
> Assuming the "main" form is valid I want to get the value of the FK to
> the Address from the "main" form and use it when processing the forms
> in the formset.
I haven't tried formsets yet, but I currently do conditional validation of
forms based on whether a
Wondering if it's common to modify WSGI middleware packages to be used
in django.
Also, wondering if it's difficult to do.
I'm building a website with user authentication similar to facebook
(so the user can stay logged in forever).
Django's contrib auth module did not seem to be the right match
Hi all i generate some xml files for my gallery app on every new request (i
use cache also). That mean i do some file operation on most of gallery
requests. I'm concerned about having the xml file in a inconsistent format.
Therefore are the django views thread-safe or how can i solve that
Has anyone created a work around for lack of pre-commit support at
beanstalkapp.com. I would like to run tests on my apps before they get
committed to my repository however with beanstalk you do not get
access to subversion hooks. I was thinking of creating a python script
that would preform the
Thanks, I'll have a read
On Feb 15, 5:59 pm, pkenjora wrote:
> Hi,
>
> There is always more than one way to do anything. For reference you
> may be interested in a custom action (not view) approach within
> admin...
>
> http://blog.awarelabs.com/?p=75
>
> I've used this
Hi,
There is always more than one way to do anything. For reference you
may be interested in a custom action (not view) approach within
admin...
http://blog.awarelabs.com/?p=75
I've used this for one click emails or custom user reports. May be
a bit dated but still useful... "Custom
Hi,
Try using the django-admin.py runserver ... --settings=.., I
abandoned manage.py several projects ago as it consistently did not
work for me. Mainly because I typically don't start with a fresh
project every time, I copy existing ones and modify.
If that works then we may need to
Hi all,
In fact my pb is : I have a that sends a DATA that the user
writes (input), but I would like it to send javascript_function(DATA)
instead. How to do it?
This is my input. The DATA is a "departure"
What shoud I write instead of name or value to return the
OK - I've found the problem. I'm using Firefox (Version 3.06) but the
problem is actually with Firebug, which I've been using to view the
headers.
With Firebug disabled, it works fine (viewing the headers through
another app).
--~--~-~--~~~---~--~~
You
On Sun, Feb 15, 2009 at 10:31 AM, DaSa wrote:
>
> Thx! But I have the correct chcp coding. I can write swedish signs in
> the promt, it is when I try to add them in the SQLite3 dB it goes
> wrong.
>
> I believe it is the "python manage.py shell" that can't handle
On Sun, Feb 15, 2009 at 10:20 AM, Peter Herndon wrote:
>
> I don't have the URL handy, but the admin docs contain pointers on how
> to add extra URLs to your admin site. Create a view, make a template,
> add the URL, profit!! So if you want charts in your admin, such a
>
Thanks Karen, it now works as expected ! .
In the tutorial
http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01
they use the proj in imports but I think the your first option is
better as it is more pluggable in other projects that way.
I wonder if there are any pros to do it
Hi Justin,
I can't view your code at the moment, but it seems to me you want a
ForeignKey on Article to Show, another FK on Photo to Show, an M2M
from Article to Photo, and a custom manager on Show, or some other
custom method, that returns both Articles and Photos. The latter
might best be
Thx! But I have the correct chcp coding. I can write swedish signs in
the promt, it is when I try to add them in the SQLite3 dB it goes
wrong.
I believe it is the "python manage.py shell" that can't handle swedish
signs. If I insert an object containing swedish signs from the admin
site and read
well, of course
replaced this
(r'^my/(.*)', myad.sites.my_site.root),
with this
(r'^my/', include(myad.sites.my_site.urls)),
in urls.py and it works a treat ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I don't have the URL handy, but the admin docs contain pointers on how
to add extra URLs to your admin site. Create a view, make a template,
add the URL, profit!! So if you want charts in your admin, such a
task is well within the capabilities of Django for you to add.
On 2/13/09, Robert
On Sun, Feb 15, 2009 at 9:46 AM, pault wrote:
>
> Malcom many thanks for your reply I created a new project and app to
> with only one model and one test.
> It still fails I know I am missing something but I cant figure out
> what that is.
>
> I tested this on both mac OSx10.5
Malcom many thanks for your reply I created a new project and app to
with only one model and one test.
It still fails I know I am missing something but I cant figure out
what that is.
I tested this on both mac OSx10.5 and vista (both python 2.5.1 and
django version 1.02)
Here are my models.py
On Sun, Feb 15, 2009 at 5:59 AM, mermer wrote:
>
> I am trying to get Etags working in Django - so that if a page has not
> been updated (and the client has already seen the page) it is returned
> by the client's browser rather than rendered by django.
>
> The code below
Hi,
I figured out that generating the url_patterns wouldn't work, because
the regular expressions are compiled the first time they are accessed.
So I suppose any addition in the Node table would be ignored and the
initial set would be used.
I found another way to accomplish this. I first call
Hi,
In my template I call a javascript function that returns a dictionary.
I would like to bring back the 2 elements of this dictionary in my
view to make some work on it.
How to do it? Use forms? how?
Thx for help on this point :)
Arbi
--~--~-~--~~~---~--~~
You
Hi,
I'm trying to add a custom view to a custom admin-site instance, as
documented there:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-views-to-admin-sites
In my rather small example project I've got this custom admin class.
It works just fine, I can register ModelAdmins and
Hi Malcom,
2009/2/15 Malcolm Tredinnick :
> Um .. names are how we refer to things in both the real world and code.
OK, this discussion is going nowhere without concrete examples, so
I'll leave it here and just submit patches later.
Regards,
--
Lee
On Feb 15, 12:53 pm, DaSa wrote:
> Hi,
>
> Maybe this is a SQLite question, but a guess many Django users uses
> SQLite3.
>
> I have a lot of data that I want to export to my SQLite3 database. My
> problem is that the data contains special signs (swedish åäö) and
>
Hi,
Maybe this is a SQLite question, but a guess many Django users uses
SQLite3.
I have a lot of data that I want to export to my SQLite3 database. My
problem is that the data contains special signs (swedish åäö) and
therefore is it not possible to insert the data through "windows
command
Tim Johnson wrote:
> I've installed django on my linux computer.
> I find documentation online at http://docs.djangoproject.com/
> I do not find documentation as part of the django install.
> Is documentation available for download?
> Thanks
> Tim
>
OK, just so the developers can get back to
I am trying to get Etags working in Django - so that if a page has not
been updated (and the client has already seen the page) it is returned
by the client's browser rather than rendered by django.
The code below is proof of concept. However, it only partially
works, and that's why I'm asking
The queue solution that Malcolm is talking about requires 3 types of
processes as far as I can tell:
- the fcgi/django processes that will be pushing jobs onto the
queue
- a manager process that is started independently from the fcgi
processes and is responsible for maintaining the shared
Closed. Turns out I hadn't declared all of my context variable - what
slowed me down was trying to use the decorator with the
"get_absolute_urls = " declaration. The documentation mixes the two
without explaining when to use one or the other. Thanks!
On Feb 15, 4:11 am, Michael Strickland
Sorry, that was a mistake I make from mixing pre-2.4 python markup
with the @permalink decorator... Ignore the "get_absolute_url =
permalink(get_absolute_url)" - it wasn't affecting the output, in any
case...
-Michael
On Feb 15, 4:05 am, Alex Koshelev wrote:
> Why do you
On Feb 15, 12:06 am, Karen Tracey wrote:
> The previous paragraph means that if you are overriding Form.clean(), you
> should iterate through self.cleaned_data.items(), possibly considering the
> _errors dictionary attribute on the form as well. In this way, you will
>
Why do you wrap two times the same `get_absolute_url` with
`models.permalink` decorator?
On Sun, Feb 15, 2009 at 10:42 AM, Michael Strickland wrote:
>
> Completely lost on this... I'm trying to set up permalinks to my
> articles, which are using generic views. I've gotten
Hi Malcolm,
Thanks for your reply. I think I wasn't really clear. The problem is
that the first part of the url is could be really anything, as it's
user defined throgh the cms. So they are created, changed, ... from
within the web application. As I don't know beforehand how they will
look, I
On 14 Feb., 20:58, James Bennett wrote:
> Everything is happening in a Postgres transaction; at the first error
> the transaction aborts and you must issue a ROLLBACK to the DB before
> continuing. Consult Django's transaction dogs for information on how
> to do this.
Thank you for your answer Malcolm.
Though what would you suggest as an solution? Shall i use the
multiprocessing package as a replacement for the threaded module (i've
already tried that, see below) or is it better to execute a management
command with Popen('python manage.py
81 matches
Mail list logo