Re: Some questions about uploaded file

2012-10-11 Thread Hendrik Speidel
Hi, django uses upload handlers to manage uploaded files. In the default configuration, if the uploaded file is small, it is only stored in memory at that point. Therefore, the uploaded file object does not expose a temporary path as part of its public api. When using a FileField/ImageField as par

Some questions about uploaded file

2012-10-11 Thread Jiao Li
Hi, I uploaded a file to the server. I want to extract the location of the file at the server side. I use request.FILES['location'] to get my file. When I print the request.FILE['location'], it just shows the file name, not the path name. So how can I get the path of the file uploaded? Thank you

Re: Django Deploy - Some Questions regarding it

2012-01-30 Thread akaariai
I don't know much about nginx, but here are some pointers: First, this page seems good source of information: https://code.djangoproject.com/wiki/DjangoAndNginx Now, take note of the "location /site_media" directive in the above link. This is basically telling the server that when there is a requ

Django Deploy - Some Questions regarding it

2012-01-28 Thread Felipe Arruda
Hi there everyone, I'm trying to make my first deploy of a project, and encountered some problems. Here is the scenario: I read that to make uploaded files only accessible for the uploader(the user) was a better choice to use nginx(apparently more easy to configure). But after following a couple of

Re: Some Questions

2011-01-24 Thread Derek
1. Not sure about those you mention, but have a look at: http://www.nosqldatabases.com/main/2010/7/27/django-and-neo4j-domain-modeling-that-kicks-ass.html 2. See: http://stackoverflow.com/questions/238081/how-do-you-log-server-errors-on-django-sites (Disclaimer - I do not work with any of these

Some Questions

2011-01-23 Thread HOYAJIGI
1, Is it possible to use NoSQL(HBase or Cassandra) rather than SQL server in Django? 2. Is there any web log analysis "middleware" for django? If not why not make one? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Newb with some questions ...

2009-06-16 Thread Peter Herndon
For REST in Django, there are a number of options, but django-piston is a front-runner. ---Peter On 6/14/09, Gunnar wrote: > > Good Day, > > I'm an 'ol VB6/SQL Server client-server programmer who has moved > into .NET, Silverlight and has done some websites with Joomla. I've > also done a LOT o

Newb with some questions ...

2009-06-14 Thread Gunnar
Good Day, I'm an 'ol VB6/SQL Server client-server programmer who has moved into .NET, Silverlight and has done some websites with Joomla. I've also done a LOT of Shockwave-Lingo, C++ and C#. After spending several days researching, I'm settling into Django more and more, and am letting go of the

Re: Some questions on using Django

2009-02-11 Thread Peter Herndon
On Wed, Feb 11, 2009 at 9:39 AM, koranthala wrote: > (1) >Could somebody let me know whether this is usual? Am I missing > some basic viewpoints which is causing me to write far too much code > than necessary? i.e. Am I or am I not following Django framework > properly? No, this app

Re: Some questions on using Django

2009-02-11 Thread Thomas Guettler
koranthala schrieb: > Hi all, >Please excuse me if this is a naive question. I am a developer/ > programmer who is now into web development for the first time. >I have read through Django tutorial and I have a moderate > understanding of how Django works. > >I have two major questions,

Some questions on using Django

2009-02-11 Thread koranthala
Hi all, Please excuse me if this is a naive question. I am a developer/ programmer who is now into web development for the first time. I have read through Django tutorial and I have a moderate understanding of how Django works. I have two major questions, which is bugging me quite a lot.

Re: Some questions to the Django auth system

2008-11-06 Thread Håkan Waara
6 nov 2008 kl. 05.40 skrev erdmaennchen: > > I'm doing some testruns on Django to find out how it fits me. Until > now: Just great. But - as always - there are some problems you > encounter when you are inexperienced with a specific framework. I've > some Problems at the moment with the built-in

Some questions to the Django auth system

2008-11-05 Thread erdmaennchen
I'm doing some testruns on Django to find out how it fits me. Until now: Just great. But - as always - there are some problems you encounter when you are inexperienced with a specific framework. I've some Problems at the moment with the built-in Django authentification. I'm not sure if I'm just no

Re: Some questions on Django's authentication system

2007-07-21 Thread eXt
Hey, thats really cool - simple and effective solution. I'm really impressed. Thanks a lot. Regards -- Jakub Wisniowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Some questions on Django's authentication system

2007-07-20 Thread Nathan Ostgard
Regarding the first question, you can do this by creating a middleware class which checks for authenticated users by default. You could also created a decorator to tag view functions as public. For example... in file yourproject/yourapp/middleware.py: from django.conf import settings from dj

Some questions on Django's authentication system

2007-07-20 Thread eXt
Hi all! I build an application which will use Django's authentication system. This is my first Django application that uses auth system, so sorry if the questions below are trivial. 1. Do I have to decorate all views with login_required if I want to keep them secured? Isn't there any inver

Re: new to django, please advise w/ some questions and concerns

2007-04-25 Thread Graham Dumpleton
On Apr 26, 8:10 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 4/25/07, Jin Lee <[EMAIL PROTECTED]> wrote: > > 5) Using apache, can you run a pool of django processes so that if one user > > is doing something particularly heavy, it doesnt slow down the entire site? > > (Basically what you do

Re: new to django, please advise w/ some questions and concerns

2007-04-25 Thread Jeremy Dunck
On 4/25/07, Jin Lee <[EMAIL PROTECTED]> wrote: ... > 1) how fast is django in Windows, specifically w/ SQL Server? Most people use Django under Linux, but I understand many people use apache + prefork + mod_python with good success. > 2) Are there any known bugs or shortcomings with the SQL Serv

new to django, please advise w/ some questions and concerns

2007-04-25 Thread Jin Lee
Hello everyone, I am a contract programmer new to python and django, but have been using Java (8 years) and Ruby (2-3 years). First, a quick story: I utilize RoR quite extensively for a number of clients. One particular client I have is on Win 2003 Server, Apache, SQL Server and RoR. I feel some

Re: new to django, and have some questions

2006-05-26 Thread James Bennett
On 5/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > One question I've been trying to get answered before I start messing > around with the project is input validation. Specifically html. Django lets you hook a list of validator functions to any field in any model [1]; there's a set of buil

new to django, and have some questions

2006-05-26 Thread [EMAIL PROTECTED]
Greetings, (scroll down to CLIFFNOTES for the short version) Here at my company, we're using python and Zope, though several of the developers have been going on about how great Django is. I'm a systems administrator by profession, and a php/mysql developer who has been toying with dojo as hobby

Model Subclassing and some questions

2006-03-12 Thread Panos Laganakos
Hello, I am defining a Product class that gets inherited by various products, so I am defining in it all the base attributes that exist on all child products. I want to know if its possible to forbid changing the actual "products" table unless you add one of the actual child products. Also, wha

Re: admin-interface: some questions

2005-12-27 Thread oggie rob
Patrik K says: > just being curious: what´s the argument against defining the rows in the model? Hi Patrick, I think it would be better use of display design if you kept the rows out of the model. You can achieve as much as you are asking by using css. For example, if you do the following: 1) Cre

Re: admin-interface: some questions

2005-12-27 Thread patrick k
just being curious: what´s the argument against defining the rows in the model? using id´s works fine with a few tables, but with hundreds of tables it´s getting complicated: because "body" in "films" may be a large textarea whereas "body" in "comments" may be a smaller one. ok, one could use "fi

Re: admin-interface: some questions

2005-12-27 Thread Eugene Lazutkin
You can use ID's: "id_summary", "id_body", and so on. #id_summary { width: 100%; height: 5em; } #id_body { width: 100%; height: 10em; } Thanks, Eugene "patrick k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] as far as i know, textares have classes like "vLarg

Re: admin-interface: some questions

2005-12-27 Thread patrick k
as far as i know, textares have classes like "vLargeTextField". so, i don´t know how one can change that. by the way, with doing what you suggested you have to update the .css-file everytime you add (or change) a model. patrick > > On 12/27/05 18:28, patrick k wrote: >>> On 12/27/05, patrick k

Re: admin-interface: some questions

2005-12-27 Thread Steven Armstrong
On 12/27/05 18:28, patrick k wrote: On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: - how do i change the numrows for a textarea-field? You can do this with CSS; create custom admin templates that include some custom CSS code. what i meant was changing the numrows for each textarea-field

Re: admin-interface: some questions

2005-12-27 Thread patrick k
> On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: >> - how do i change the numrows for a textarea-field? > > You can do this with CSS; create custom admin templates that include > some custom CSS code. what i meant was changing the numrows for each textarea-field seperately. e.g., a body-field

Re: admin-interface: some questions

2005-12-27 Thread Robert Wittams
Adrian Holovaty wrote: > > >>- we have automatic fields for createdate and updatedate (auto_now, >>auto_now_add). what about automatically inserting the logged in user who >>creates (or updates) the record? i don´t know about anybody else, but i need >>that all the time. that´s especially intere

Re: admin-interface: some questions

2005-12-27 Thread Adrian Holovaty
On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: > - how do i change the numrows for a textarea-field? You can do this with CSS; create custom admin templates that include some custom CSS code. > - why is it always the first column of the list which is linked to the > detail-page? when listing

admin-interface: some questions

2005-12-27 Thread patrick k
i´ve been playing around with the admin-interface and have some questions: - how do i change the numrows for a textarea-field? - why is it always the first column of the list which is linked to the detail-page? when listing the ID, i´d like the ID to be the first field in the list. nevertheless