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
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
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
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
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
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
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
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
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
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,
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.
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
31 matches
Mail list logo