You can use below in setttings.py, create a folder called static
inside project and u can use it for static files.
STATIC_URL = '/static/'
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/
static".
# Always use forward slashes, even on Windows.
# D
hi,
check django-admin.py help you can see list of commands
available.
DJANGO_SETTINGS_MODULE might be set u can check whether it is set or
not in commandline using echo $DJANGO_SETTINGS_MODULE.
You can try using python django-admin.py startproject proj_name. or
python C:\Python26\Scripts\djan
hi ,
just use
lokesh
On Aug 2, 12:23 am, Furqan Rauf wrote:
> Hey Showket, just google for html examples you will find dozen, w3school can
> get you started with basics.
> Good luck
>
> Furqan
>
> On Mon, Aug 1, 2011 at 4:59 AM, Daniel Roseman wrote:
>
>
>
>
>
>
>
>
>
>
>
> > On Monday, 1 A
I see I don't understand how can I use static files using the
development server. I saw several answers to this question of other
people but they are too breaf for me. I think I follow advices but
without any result.
Books on Django I have don't explain this problem. Be so kind to
explain me.
My lo
Thanks much for the replies.
> As shown above, I update a set of context variables in form_valid and
>> > I intend to use these in the template - hence the variables in context
>> > dictionary. The problem with this code is that the change in
>> > context_var1 isn't seen - might be because 'get_c
If DJANGO_SETTINGS_MODULE is set, it won't be able to find startproject
On Mon, Aug 1, 2011 at 8:02 PM, bob gailer wrote:
> I am a VERY frustrated Django newbie. I can get so far in a tutorial,
> only to run into a roadblock. (several of them). Today I decided to
> start over from scratch. Now I
Russell
Thank you for the clarification. Just a couple of questions below ...
On 1/08/2011 11:09pm, Russell Keith-Magee wrote:
Close, but not quite.
* USE_I18N turns on the availability of translations at all. If
USE_I18N is false, all translation-related activities are no-ops.
* Assuming
Front end validation doesn't always work like it is supposed to so you
shouldn't really rely on it.
On Mon, Aug 1, 2011 at 6:09 AM, lokesh wrote:
> hi,
> i think Best way is front end validation. instead of modifying auth
> models.
> lokesh s
>
>
>
> On Aug 1, 12:43 pm, bruno desthuilliers
> w
I am a VERY frustrated Django newbie. I can get so far in a tutorial,
only to run into a roadblock. (several of them). Today I decided to
start over from scratch. Now I can't get past django-admin.py
startproject mysite. get Unknown command: 'startproject'. This worked
the previous times.
What am
On Mon, Aug 1, 2011 at 3:51 PM, Chris Seberino wrote:
>
>
> On Aug 1, 7:11 am, DrBloodmoney wrote:
>> You can look into protecting them with mod_xsendfile for Apache
>
> Thanks. I'll look into that. Is there no way to have a view hand off
> a page to Apache?
Like Javier mentioned, this is exac
Hi Stanislav
I think there's two ways you can do this... if you want to go down the
Forms route you actually want to be looking at Formsets [1], which
allow you to have a 'grid' of forms in a table with one row
representing each object.
If that seems like a steep learning curve to get your head a
Hi. We have a Django project running on several servers based across
the US. When we get the request, we redirect it to one of the servers
to achieve fastest response. The servers are called login-1, login-2,
etc, but we're pointing to them using a cname login. When an error
happens we get an em
On Mon, Aug 1, 2011 at 2:51 PM, Chris Seberino wrote:
> Thanks. I'll look into that. Is there no way to have a view hand off
> a page to Apache?
> If there was, I could have a view that was password protected and only
> when I was in the view would I allow the apache page to be served.
that's e
You would probably have to wait until the django backend for postgres is
modified not to fetch all the records at one go.
As for now, I guess you should go ahead with writing custom serializers which
specifically queries the db records in chunks.
Sent from my iPad 2
On Aug 1, 2011, at 7:06 PM,
Well, i have a method called export_acesso. This is a post_save
method.
When i save something, export_acesso is called and get the dictionary
with the dic_acesso() function.
def export_acesso(sender=Acesso, **kwargs):
dic = dic_acesso()
...
On Aug 1, 4:58 pm, bruno desthuilliers
wrote:
On 1 août, 20:24, eduardoorige wrote:
> Thanks for your reply..
>
> Each Acesso have a sector which is Unique. Acesso`s _unicode is
> SECTOR.
> When I set for the first time values for this rule(Acesso), the
> dictionary come without values for genres.
>
> Example:
> Acesso is empty now.
> Enter i
On Aug 1, 7:11 am, DrBloodmoney wrote:
> You can look into protecting them with mod_xsendfile for Apache
Thanks. I'll look into that. Is there no way to have a view hand off
a page to Apache?
If there was, I could have a view that was password protected and only
when I was in the view would I
Hey Showket, just google for html examples you will find dozen, w3school can
get you started with basics.
Good luck
Furqan
On Mon, Aug 1, 2011 at 4:59 AM, Daniel Roseman wrote:
>
> On Monday, 1 August 2011 10:44:39 UTC+1, Showket Bhat wrote:
>>
>> Hi Everyone,
>>
>> while practicing for django i
I've been adding memcached base caching of page fragments so that when
a logged in user sees, "hello sammy" up at the top of the page, that
the rest of the page still loads quickly.
I've wanted to try to leverage proxy caching to enable better
international access (and save server load), but it se
On Monday, 1 August 2011 12:43:23 UTC+1, Tom Evans wrote:
>
> On Mon, Aug 1, 2011 at 11:08 AM, Abhilash Inumella
> wrote:
> > Dear all,
> >
> > I have a class QuestionView which is derived from FormView class. Here
> > is the code snippet to explain my problem:
> >
> > class QuestionView(FormView)
Thanks for your reply..
Each Acesso have a sector which is Unique. Acesso`s _unicode is
SECTOR.
When I set for the first time values for this rule(Acesso), the
dictionary come without values for genres.
Example:
Acesso is empty now.
Enter in Admin/Acesso
and set values:
Sector = 'Development'
F
Thanks already solved
i use post_save for child class and works for me!
On 1 August 2011 14:55, bruno desthuilliers
wrote:
> On 1 août, 19:17, Daniel Corbe wrote:
> > Ok, halfly solved.
>
> What ?
>
> > The problem
>
> Which problem ?
>
> --
> You received this message because you are subscri
On 1 août, 19:17, Daniel Corbe wrote:
> Ok, halfly solved.
What ?
> The problem
Which problem ?
--
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 grou
On 1 août, 17:16, eduardoorige wrote:
> Good morning people.
> I made a signal that plays m2m table values to a dictionary.
> For example:
>
> dic = {'SECTOR': {'forbidden': [Genres ,...], 'released':
> [Genres ,...]}}
>
> There is a table of company sectors, each of these sectors has
> access
Ok, halfly solved.
The problem is that post_save() for parent model doesn't calling for childs
models.
So you can solve it by providing child class directly.
class Advertisement(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
author_email = models.EmailField()
class Sa
Good morning people.
I made a signal that plays m2m table values to a dictionary.
For example:
dic = {'SECTOR': {'forbidden': [Genres ,...], 'released':
[Genres ,...]}}
There is a table of company sectors, each of these sectors has
access rules prohibited and released. The genres are content
On Mon, Aug 1, 2011 at 5:43 PM, Doug Ballance wrote:
> I'll second the use of something like LXC (new to me) or OpenVZ (what
> we use), allowing you to run/test multiple distros at once. If you
> want to try debian (or pretty much any linux distro), download a
> container skeleton for it and ins
I'll second the use of something like LXC (new to me) or OpenVZ (what
we use), allowing you to run/test multiple distros at once. If you
want to try debian (or pretty much any linux distro), download a
container skeleton for it and install in a few seconds. I've used
virtualbox/kvm, but I found c
On Mon, Aug 1, 2011 at 3:39 PM, Anoop Thomas Mathew wrote:
> Hi,
>
> Thank you all for your suggestions, Especially, Cal and Sam.
> I'd go with Debian Squeeze. That seems to be the best choice for now.
>
+1 on Sams comments.
>
> To be clear about the question, I'm using linux operating systems
Hi,
Thank you all for your suggestions, Especially, Cal and Sam.
I'd go with Debian Squeeze. That seems to be the best choice for now.
To be clear about the question, I'm using linux operating systems for the
past 7 years. The errors are not specific nor recurring, nor even device
specific. Just
I found the ticket to this issue (with patchs)
https://code.djangoproject.com/ticket/5423
On Mon, Aug 1, 2011 at 9:32 AM, Ricardo L. Dani wrote:
> Hello django-users,
>
> I'm having problems trying to serialize the data of a postgresql db of my
> business application (lots of lots of data)
>
> U
If a modern linux OS is crashing then it will likely /var/log whats
going wrong. The phrasing of this issue seems to indicate lack of
experience or familiarity with the linux os or unix model of os.
Thats no problem if you are keen to learn the principles of the OS you
will get better at using the
On Mon, Aug 1, 2011 at 9:14 AM, Mike Dewhirst wrote:
> On 1/08/2011 8:09am, Lucy Brennan wrote:
>>
>> I read Wikipedia and Django docs. Now, after all this debate, I see that I
>> _did_ understand the definitions when I first read it.
>>
>> Given those definitions however, the meaning of USE_I18N
Hi Stanislav,
I would sugest to create your own form object instead of creating input tags
directly in your template.
Read this page which also explains how to validate your form on the
serverside:
https://docs.djangoproject.com/en/dev/topics/forms/
Use a boolean field to generate a checkbox.
Hello django-users,
I'm having problems trying to serialize the data of a postgresql db of my
business application (lots of lots of data)
Using the command:
./manage.py dumpdata > data.json
But, the execution of this command takes a long time and the ram and swap of
the computer reachs the limi
On Mon, Aug 1, 2011 at 1:12 AM, Chris Seberino wrote:
> My Django app only allows someone to access a /books page, that is
> part of the Django app, if they are signed in.
>
> The pages below that URL are just static directory listings of PDFs
> all handled by Apache.
> For example /books/book_1,
Awesome, that's the way I'm going about it. Thanks for the responses.
-James
On Mon, Aug 1, 2011 at 5:09 AM, lokesh wrote:
> hi,
> i think Best way is front end validation. instead of modifying auth
> models.
> lokesh s
>
>
>
> On Aug 1, 12:43 pm, bruno desthuilliers
> wrote:
> > On Aug 1, 7:
On Mon, Aug 1, 2011 at 11:08 AM, Abhilash Inumella
wrote:
> Dear all,
>
> I have a class QuestionView which is derived from FormView class. Here
> is the code snippet to explain my problem:
>
> class QuestionView(FormView):
> ..
> context_var1 = y
This declares a class attribute called context_
Dear all,
I have a class QuestionView which is derived from FormView class. Here
is the code snippet to explain my problem:
class QuestionView(FormView):
..
context_var1 = y
def form_valid (self, form):
...
self.context_var1 = x
...
def get_context_data(self, **kwargs):
Hi everyone,
I'm quite new to django and still learning.
But I face a problem that i can't solve.
I have the following very simple example.
Let say that I have one model for Books.
class Book(models.Model):
name = models.CharField(max_length=50,unique = True)
description = models.TextField
i will go for freebsd which is unix.
but all depends on the admin abd hardware..
On Aug 1, 2011 5:17 PM, "Cal Leeming [Simplicity Media Ltd]" <
cal.leem...@simplicitymedialtd.co.uk> wrote:
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
If your css file is locatedr in your staticfiles dir, you should use
something such as {{ STATIC_URL }}main.css, assuming your CSS file is called
main and is located in one of the STATIC_DIRS.
Using staticfiles_dirs in a template makes no sense. Not only your are
passing a parameter that has to do
@thomas I think I may have tried PyCharm, but not in any depth. I'll check
it out again when I'm in the mood for browsing :)
@neonmark - I've tried Aptana, but I do recall not being able to make it
work easily. I'll check it out again sometime
On Mon, Aug 1, 2011 at 9:19 AM, Thomas Weholt wrote:
hi,
Use Javascript or jquery .reset() to clear the form fields .
Lokesh S
On Aug 1, 1:41 pm, Reikje wrote:
> Hi,
>
> I am using django.Forms for a website. I have a text field which is
> not required. Every time it is posted, I do not retain what was
> entered in this field, i.e. it should be bl
Have you tried Aptana. has Django support and uses PyDev - a good tool
On 8/1/2011 8:19 PM, Thomas Weholt wrote:
Hmmm ... I've had the same problem using PyCharm; it just doesn't look
good, but after a while I stopped noticing and started loving the
features of that IDE. Tried PyCharm Cal? The l
Hello All,
I'm using Django to develop a website, and I'm having trouble getting
it to see my static files. I've looked through Django's static file
documentation and the steps I've taken to get Django to see my files
(using a CSS file as an example) are as follows:
First, I created a folder cal
hi,
i think Best way is front end validation. instead of modifying auth
models.
lokesh s
On Aug 1, 12:43 pm, bruno desthuilliers
wrote:
> On Aug 1, 7:28 am, James DeMichele wrote:
>
> > Hello,
>
> > I have a question about tweaking the django.contrib.auth.models.User class.
> > I noticed tha
On Monday, 1 August 2011 10:44:39 UTC+1, Showket Bhat wrote:
>
> Hi Everyone,
>
> while practicing for django i reached at a point where i want to call
> the next page on a clic. where i ve put an image.. how ever i
> dont know the syntex of tag neither i know any other way to cal
> my url.p
Hi Everyone,
while practicing for django i reached at a point where i want to call
the next page on a clic. where i ve put an image.. how ever i
dont know the syntex of tag neither i know any other way to cal
my url.py as i have done previously on submit buton click (by writing
action = /next_pa
I've used Debian (lenny+squeeze) for many years now in Python/Django
development, and it's served me well.
But, you can easily turn a system into a nervous wreck if you don't
configure it properly, or use "bleeding edge" without fully knowing whats
happening.
All distros of Linux are a learning c
On Mon, Aug 1, 2011 at 9:27 AM, Anoop Thomas Mathew wrote:
> Hi All,
> Firstly, I am not here for a distro war.
Then you asked the wrong question. This will automatically become a
series of 'Oh I use X and its much better than Y in this scenario".
> I was using ubuntu 9.10, and then switched to
Hi,
I am using django.Forms for a website. I have a text field which is
not required. Every time it is posted, I do not retain what was
entered in this field, i.e. it should be blank every time the page is
rendered. What is the best way to archive this? Here is the form:
class SuggestionForm(form
Hi All,
Firstly, I am not here for a distro war.
I was using ubuntu 9.10, and then switched to fedora 14 and then to fedora
15.
IMHO, It seems that they all were quite unstable. (Many times it hung up on
my Dell and HP machines - may be driver issues, still I don't want that
too.)
I would really l
Hmmm ... I've had the same problem using PyCharm; it just doesn't look
good, but after a while I stopped noticing and started loving the
features of that IDE. Tried PyCharm Cal? The last time I tried Komodo
it crashed big time. I'd been using Komodo for a while and the bugs
might have been fixed no
On Sat, Jul 30, 2011 at 2:51 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
>
> This is pretty much the only list I *enjoy* being a part of, and it
> probably wouldn't be like this unless certain etiquette was enforced.
>
>
What? Why the "only*? Do they more
On Sun, Jul 31, 2011 at 6:56 PM, Vusal Alishov wrote:
> Hello, i've problem with django-nani, in admin panel ist of objects
> don't shown.
>
I havent heard of this app/package till now. But, are you getting some error
in the console?
or did you try contacting the author? (or the mailing list, if
On Aug 1, 7:28 am, James DeMichele wrote:
> Hello,
>
> I have a question about tweaking the django.contrib.auth.models.User class.
> I noticed that Django doesn't allow for overriding of attributes of "Field"
> instances, such as "email" or "first name". Yet, I'd like to my email and
> first name
57 matches
Mail list logo