Hi,I'm currently evaluating various web frameworks for my future project. I need an admin interface for a distributed system, in which the data is going to be fetched not from an SQL source but from a SOAP webservice or perhaps a couple of them. Has anyone got any experience of doing that with Djan
this is my first shot at using Django. i've been using php/mysql on my
site for a while, but really like python and would like to move to it.
i thought i had everything setup correctly but while following through
the tutorial on the djangoproject.com site when i enter:
python manage.py syncdb
i
Thanks to you.
So it is like it is. No short changes on a virtually hosted production server
with mod_python :)
And my second problem doesn't belong in this list. After googling again i
found that it may be caused by a wrong compiled mod_python (two mod_python
versions with to python version
On 8/30/06, keukaman <[EMAIL PROTECTED]> wrote:
> Somewhere in this process my flatpages middleware stopped working. I
> was getting a python error when trying to access flatpages. I don't
> know if something was corrupted of if .96 handles flatpages
> differently. If anyone can shed some light on
Joseph Heck wrote:
> Have you used it for your own deploys? I'm curious how well it worked for
> you.
I looked at it, but decided to roll my own tools for now.
--Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Hi,
I've updated the tutorial and code for the AJAX Select widget [1] .
This code is extracted from a larger project so hopefully I've got
everything there. Let me know if you are missing anything.
regards
matthew
[1] http://code.djangoproject.com/wiki/AJAXWidgetComboBox
On 30/08/06, zenx <[E
I had a problem following a server crash that I have since recovered
from. However, while trying to get everything running again, I checked
out .96 using subversion.
Somewhere in this process my flatpages middleware stopped working. I
was getting a python error when trying to access flatpages. I
On 31-Aug-06, at 12:52 AM, James Bennett wrote:
> Also, I've heard about weird things with mod_python on FreeBSD (my
> hosting provider is currently on FreeBSD and doesn't offer mod_python
> because of problems they ran into with it).
i have been using mod_python on freeBSD for nearly a year wi
Russell Keith-Magee wrote:
> On 8/31/06, frank <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is clearly not the "Django way", but is there some way in which
> > this might be accomplished?
>
>
> Can you make the button an inside a action="myurl" method="post">, where myurl is either:
>
> 1) the l
Good to know. /me goes to catch up on reviewing.
:)
On 8/30/06, Deryck Hodge <[EMAIL PROTECTED]> wrote:
>
> On 8/30/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> > # Books
> > Sadly, not yet. One's in the works. Adrian was considering putting
> > it up in-progress for review.
>
> I know tha
On 8/30/06, viestards <[EMAIL PROTECTED]> wrote:
>
> I'm trying to setup shared Django hosting on FreeBSD with Apache, but
> I have to restart Apache every time when I want changes to take
> effect, insead of simply touching file.
> Calling FastCGI file directly have same results- no effect until
in the last few days it seems everyone is going the mod_python route for this and a few other stability issues...i am also struggling with the same problems and decisions as to what route to take.viestards <[EMAIL PROTECTED]> wrote: I'm trying to setup shared Django hosting on FreeBSD with Apache,
Better to have multiple DIVs and bring up a new DIV dynamically based on the choice.This little "AJAX" way is quicker and cleaner.When you talk about data table...do you mean large data grid with inital form requiring base input range and selection criteria, the the user clicks submit and a large
On 8/30/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> # Books
> Sadly, not yet. One's in the works. Adrian was considering putting
> it up in-progress for review.
I know that Addison-Wesley/Prentice Hall is pursuing a Django book,
too. But what the timeline will be or who will write it is stil
On 8/31/06, frank <[EMAIL PROTECTED]> wrote:
This is clearly not the "Django way", but is there some way in whichthis might be accomplished?Can you make the button an inside a , where myurl is either:
1) the location you want the button to go to, or 2) a URL that will redirect based on which butto
Kenneth Gonsalves wrote:
> On 30-Aug-06, at 3:35 PM, Frank Stüss wrote:
>
> > on a production server with mod_python, how can i force reloading
> > all .py
> > files without restarting apache?
>
> you cant
To clarify, this is only the case where the Python code file is loaded
by Django using its
On 8/31/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
On 8/30/06, cerealito <
[EMAIL PROTECTED]> wrote:
Well No, not exactly, and that's why started this thread. If I callthose methods, only one file (the last one in the form) will getuploded and its data saved to the database. The rest of the
I'm trying to setup shared Django hosting on FreeBSD with Apache, but
I have to restart Apache every time when I want changes to take
effect, insead of simply touching file.
Calling FastCGI file directly have same results- no effect until restart.
Is this FastCGI problem or I have to look somewhe
This may seem perverse, but I'd like to redirect to a new page from a
button event rather than the usual clicking on a link. Essentially,
the user is presented with a table of items, each of which has an
associated radio button. At the bottom (or top) of the table is a
series of buttons represen
On 8/30/06, Nowell <[EMAIL PROTECTED]> wrote:
I believe that the correct way to accomplish this is:temp = Message(...)temp.save()temp.teams = Team.objects.filter(id__in=data.getlist('teams'))Notice you need to use the getlist() function to return a list of the
M2M selections, the previous code will
On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hey I just downloaded and installed django svn 3676 and while going
> through "Writing your first Django app, part 1" (the URL follows) I
> encountered an error.
>
> URL: http://www.djangoproject.com/documentation/tutorial1/
> Error: une
On 8/30/06, cerealito <[EMAIL PROTECTED]> wrote:
Well No, not exactly, and that's why started this thread. If I callthose methods, only one file (the last one in the form) will getuploded and its data saved to the database. The rest of the files inthe post request seem to be lost.
You seem to have
On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:Hey I just downloaded and installed django svn 3676 and while going
through "Writing your first Django app, part 1" (the URL follows) Iencountered an error.URL: http://www.djangoproject.com/documentation/tutorial1/
Error: unexpected keyword a
On 8/31/06, Jakub Labath <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks for advice Malcolm!
>
> I feel a sample would save some time to other people. Time that i had to
> spend.
>
> class OnlyRealProfileSQL:
> def get_sql(*args):
> #select name from django_content_type where app_label
Have you used it for your own deploys? I'm curious how well it worked for you.-joeOn 8/30/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:You may want to look at this:
http://pythonpaste.org/deploy/--Nick
--~--~-~--~~~---~--~~
You received this message because yo
Hello,
Did you know if there is someone that installed Django on this cool
little device:
www.nslu2-linux.org
??
Ive one of those with lighttpd+fastCGI and I'd like to know something
about Django+Nslu2 before a try.
Thanks,
Picio
--~--~-~--~~~---~--~~
You received
Thanks zenx for the book,
but about the tutorial maybe there is a misunderstanding:
I finished to read an actually do the tutorial you're talking about,
and I already read the Installation guide. I have also read some other
txt, like template language for authors.
I'm searching something like re
On 8/30/06, Picio <[EMAIL PROTECTED]> wrote:
> Do you know if
> there is some Book like what I see here
> http://www.rubyonrails.org/docs
> but of course for Django?
I'll answer per-section on that page.
# APIs
This page, in addition to the tutorials, has quite a lot of
documentation for the AP
Had hard time with it too.
Check this
http://code.djangoproject.com/ticket/2413
and
http://code.djangoproject.com/ticket/2534
Hopefully will be merged into django.. Current behavior is bug.
> My client would like to be able to upload invoices via the admin
> interface. There's a customer mode
Ivan Sagalaev napisał(a):
> I also have a FreeBSD machine with Apache 2.2 but never tried to install
> mod_python since for the time being it did only support officially
> Apache 2.0. That's why I went with FastCGI server instead. Any reason
> why you do want mod_python?
>
I have lighttpd+f
James Bennett napisał(a):
>>
>> Have you double-checked that you're not running into one of the problems
>> here?
>> http://www.djangoproject.com/documentation/modpython/#if-you-get-a-segmentation-fault
>>
Yup. Point number 2. Lesson taken, but what a waste of time :).
(honestly speaking:
Hi Picio,
I don't know when it will be published, but a book is coming:
http://www.amazon.com/gp/product/1590597257
It is written by Adrian Holovaty and Jacob Kaplan-Moss (django
developers) and as far as I know it will be also avaible for free
download as PDF :D
--~--~-~--~~---
And you can find the starting tutorial you are asking for here:
http://www.djangoproject.com/documentation/
take a look at "installation guide" and "Tutorial: Writing your first
Django app"
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hello, I'm a Django newbie, I finished right now the tutorial, I read
also other text coming from my docs dir in Django_0.95. Do you know if
there is some Book like what I see here
http://www.rubyonrails.org/docs
but of course for Django?
Can you give me any advice like where I have to go after th
You may want to look at this:
http://pythonpaste.org/deploy/
--Nick
--~--~-~--~~~---~--~~
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 uns
I currently have Apache 2.2.3, Mod_python 3.2.10, and FreeBSD 6.1 (with
all current patches) running on a production server and haven't had any
problems. There are so many variables, without being much closer to
the problem, I can't give much advice other than my server is working
as it should.
Is there a Capistrano-like tool for Django, written in Python?
http://manuals.rubyonrails.com/read/book/17
I know Capistrano can deploy other things -- it doesn't have to be
Rails apps. But a tool written in Python would lower the dependencies
we have to maintain in house, and know.
Thanks,
Rob
On 8/30/06, Wiktor Grêbla <[EMAIL PROTECTED]> wrote:
> Unfortunately I'm not the admin of this machine, so I'm a bit restricted
> in what I can do. The most general question comes to mind: do you have
> similar working configuration?
Have you double-checked that you're not running into one of the
hi,
imagine 2 simple models like:
=
class Thing(Model):
name = CharField(maxlength=500)
=
=
class Owner(Model):
name = CharField(maxlength=500)
thing = ForeignKey(Thing)
=
now let's say you have 20
My client would like to be able to upload invoices via the admin
interface. There's a customer model, and I've created another related
model (Invoice), which I've set to edit_inline and associated via
foreign key to the Customer model.
The client may or may not have an invoice to upload.
So far,
Wiktor Grębla wrote:
> Unfortunately I'm not the admin of this machine, so I'm a bit restricted
> in what I can do. The most general question comes to mind: do you have
> similar working configuration?
I also have a FreeBSD machine with Apache 2.2 but never tried to install
mod_python since fo
I know that but my problem is that it is still undocumented. I am an
absolute newbie in case of django and web development in python.
Though I have used python for quite some time.
CAn you provide some link that documents content-type system.
On 8/30/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
On 8/30/06, Mir Nazim <[EMAIL PROTECTED]> wrote:
> Now comes another problem, I have read generic relationships document
> at django site. but can anyone point me to some urls where thing like
> content-type etc(that are need for generic relationship to work)
> described in detail. The solution de
Jeremy Dunck wrote:
> On 8/29/06, Mir Nazim <[EMAIL PROTECTED]> wrote:
> >
> > I have already gone through that. but problem is that I need to add
> > some attributes to relationships like
> >
> > he is my best friend
> > i have not met him
> >
> > something like orkut.
>
> If you're going to att
On 08/30/06 07:10, Frank Stüss wrote:
> Hi folks,
> since this list is getting bigger day by day..
> Eam.. what about splitting this group up in say two or three lists?
>
> django.newbies (like me :-)
> django.apps
> django.views
>
> Looking for better names/categories.
>
> As all of you answe
On 30 Aug 2006, at 18:13, James Bennett wrote:
> On 8/30/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote:
>> Before you start exposing my ignorance of Emacs Lisp to the world, I
>> will offer you that this is my first Emacs Lisp project *ever* (in
>> fact I don't even know Emacs Lisp at all), so pl
On 8/30/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote:
> Before you start exposing my ignorance of Emacs Lisp to the world, I
> will offer you that this is my first Emacs Lisp project *ever* (in
> fact I don't even know Emacs Lisp at all), so please be gentle.
First question: is this being built
Hello Djangoers,
I’ve started hacking on an editing mode for Django templates in
Emacs. The only feature it has at the moment (and the reason I
decided to do it) is syntax highlighting of Django template blocks
and variables.
Before you start exposing my ignorance of Emacs Lisp to the worl
I believe that the correct way to accomplish this is:
temp = Message(...)
temp.save()
temp.teams = Team.objects.filter(id__in=data.getlist('teams'))
Notice you need to use the getlist() function to return a list of the
M2M selections, the previous code will return only the last element.
--~--~
Hi,
Thanks for advice Malcolm!
I feel a sample would save some time to other people. Time that i had to spend.
class OnlyRealProfileSQL:
def get_sql(*args):
#select name from django_content_type where app_label =
'users' and model != 'profile' and model like '%p
rofile'
retu
I know, another boring configuration question. Most of you probably
prefer to do some python coding, but... I'm obsessive and it's not easy
to ignore that something as cool as django does not work for me :).
Shortly speaking, it dies :). Internal server error, nothing more
specific, despite of
Hello:
In settings.py I have:
MEDIA_ROOT = 'C:/attach/'
In models.py:
class MaeDoc(models.Model):
.
.
per_con = models.CharField('Contact person', maxlength=40)
doc_adj = models.FileField(upload_to='doc_adj', help_text='Main
doc')
.
.
.
def save(self):
self.doc_adj = '\\1996
Python quick reference (invaluable):
http://rgruet.free.fr/PQR24/PQR2.4.html
--~--~-~--~~~---~--~~
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
T
I'm new to Python but not new to programming. I picked up this book
recently and couldn't be happier:
Beginning Python:
http://www.amazon.com/Beginning-Python-Novice/dp/159059519X/sr=8-4/
qid=1156946981/ref=pd_bbs_4/002-6713626-9604860?ie=UTF8
You said you're not new to Python but I wouldn't b
Thank you! I did read the template docs but I missed that one. Works
great!
:-)
Sean
On Aug 30, 2006, at 6:30 PM, Kenneth Gonsalves wrote:
>
>
> On 30-Aug-06, at 2:45 PM, Sean Schertell wrote:
>
>> Obviously this doesn't work because you can't use "==" in templates.
>> So how can I achieve
How would you write a maniplulator for a list of objects of the same
class?
--~--~-~--~~~---~--~~
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
T
On 8/30/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
> I have something to add:
> - I can add or delete 'fichas' from the admin site with no problem.
> - This 0.95 version is an upgrade from 0.91.
>
That last part is interesting. Did you have a database running against
0.91, and then you upgrad
For a quick update on Python's data structures, I always find Dive
Into Python by Mark Pilgrim to be a good read.
The book is FDL, and you can read it online here:
http://diveintopython.org/toc/index.html
--Jon
On 30/08/06, Pete Abilla <[EMAIL PROTECTED]> wrote:
> Group:
>
> Any book Advice or
Group:Any book Advice or good Sites to visit for a Rusty Python Programmer and New Django Consumer (aka - me)?-- Pete Abillablog: www.shmula.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. To
Admin is great, but customazibility is.. Not quite clear..
How can I add e.g
1) single radio-field among all edit_inlined objects ?
2) hierselect ( select 1 is set, then select 2 shows fields depending on
select 1)
3) self-managed search functionality in admin object list ?
E.g search by fiel
Thanks Matthew!!!
I'm anxious to look at the code :D
--~--~-~--~~~---~--~~
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
Jay Parlar escreveu:
> On 8/29/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I posted this on Saturday, but since I had no replies, I'm reposting it.
>>
>> What should I look for to solve this problem:
>>
>> When I access http://127.0.0.1:8000/admin/ I get
>> Groups
>> Users
>> in the
hi all :)I found my problem myself!! I didn't notice that every where I use the hack I have to all the method in order to create a new local thread!!Now it seems a little stable!Thanks all
On 8/30/06, ibson <[EMAIL PROTECTED]> wrote:
Maybe no one faced that problem.I now want to know why sometimes
Kenneth Gonsalves wrote:
> i always use it, but for some reason it is not in the official docs -
> although it is in the wiki
Yes this is it: http://code.djangoproject.com/wiki/NewAdminChanges
There is also a small point that is easy to miss: on POST one should
call do_html2python both when t
:-)
I prayed and hoped though...
> you cant
--~--~-~--~~~---~--~~
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
On 30-Aug-06, at 3:35 PM, Frank Stüss wrote:
> on a production server with mod_python, how can i force reloading
> all .py
> files without restarting apache?
you cant
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~
Maybe no one faced that problem.
I now want to know why sometimes the user doesn't change if there was 2
simultaneous connection. how can I do that each connection use a
different local thread?
(Or I don't understand something in this hack??)
ibson wrote:
> Hi,
> I'm using the threadlocals hack
>
Hi all,
somewhat off topic may be:
on a production server with mod_python, how can i force reloading all .py
files without restarting apache?
touch .../handler.py does not work for me.
And strange: every now and then an 'old' error reappears in my browser, even
if i cleared the cache. Eg. i
On Wed, Aug 30, 2006 at 11:31:32AM +0200, Baurzhan Ismagulov wrote:
> I'm using the language selection form from
> http://www.djangoproject.com/documentation/i18n/ and want to preselect
> the current language. How can I do this?
Got help from [530] on IRC and the previous posting:
{% ifequal lan
Hello all,
I'm using the language selection form from
http://www.djangoproject.com/documentation/i18n/ and want to preselect
the current language. How can I do this?
With kind regards,
Baurzhan.
--~--~-~--~~~---~--~~
You received this message because you are subs
On 30-Aug-06, at 2:45 PM, Sean Schertell wrote:
> Obviously this doesn't work because you can't use "==" in templates.
> So how can I achieve this?
use ifequal
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
How can I display different things in my template depending on the
value of a single column in my database?
For example:
{% for e in events %}
{% if e.status == '1' %}Buy
Tickets{% endif %}
{% if e.status == '2' %}SOLD OUT!
{% endif
On 30-Aug-06, at 2:33 PM, cyberco wrote:
> So should I always use 'manipulator.flatten_data()' instead of
> 'obj.__dict__' for filling forms with existing values?
i always use it, but for some reason it is not in the official docs -
although it is in the wiki
--
regards
kg
http://lawgon.li
That works, great!
So should I always use 'manipulator.flatten_data()' instead of
'obj.__dict__' for filling forms with existing values?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Ok, as a reminder, here is the Image model I am using:
class Image(models.Model):
altText = models.CharField(maxlength = 128, null = True, blank =
True)
picture = models.ImageField(upload_to='img/%Y/%m')
The problem is that i want to create multiple objects of this type from
a single upl
cyberco wrote:
> ==VIEW=
> errors = {}
> pizza =
> new_data = pizza.__dict__
This is why it doesn't work. There is a method in manipulators
'flatten_data' that correctly fills data for ForeignKeys and ManyToMany:
manipulator = Pizza.ChangeManipulator(id) # or whatever
I'm using manipulators.
==MODELS==
class Pizza(models.Model):
toppings = models.ManyToManyField(Topping)
class Topping(models.Model):
name = models.CharField(maxlength=100)
===
==VIEW=
errors = {}
pizza =
new_data = pizza.__di
Frank Stüss wrote:
> Hi folks,
> since this list is getting bigger day by day..
> Eam.. what about splitting this group up in say two or three lists?
-1 for splitting
Lorenzo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
Adrian Holovaty wrote:
> I'd recommend handling this at the Apache level. See the
> LimitRequestBody directive:
>
> http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are sub
cyberco wrote:
> In a form for changing a model instance all fields get correctly filled
> with existing values except the ManyToManyField form fields (which
> renders as a choice list in a form). It shows the correct list of
> options, but none of the options is selected, even though the instance
-1
Look at the list now, most posts are general Django questions that most
users are interested in (at least at one point). Splitting them up
would mean monitoring different lists for most of us.
--~--~-~--~~~---~--~~
You received this message because you are subs
81 matches
Mail list logo