OK, I understand that static JavaScript files, stylesheets and images
should be stored in a /static/ directory and managed by the
django.contrib.staticfiles app.
But a typical project will contain both dynamic HTML pages generated
by Django and (possibly long) static HTML pages. Such static HTML
On 08/03/2011 10:46 PM, Joshua Russo wrote:
Really? Nothing? Do you need more information? From the lack of
response I feel like I'm completely off the mark and nobody wants to
tell me. --
1: https://code.djangoproject.com/wiki/UsingTheMailingList
If you're not getting help then it's almost
Really? Nothing? Do you need more information? From the lack of response I
feel like I'm completely off the mark and nobody wants to tell me.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
I'm working through the introductory tutorial @ djangoproject.com. Why
does the poll object require an explicit save() call, while choice
objects are inserted into the db instantaneously?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On Tue, Aug 2, 2011 at 1:02 PM, George Cummins wrote:
> On Tue, Aug 2, 2011 at 12:38 PM, Tom Evans wrote:
>
>> On Tue, Aug 2, 2011 at 3:17 PM, George Cummins
>> wrote:
>> > While testing changes to an existing project, I disabled
Hi,
I am experimenting with Django v1.3 and using a PostgreSQL db.
Having created the model and syncdb the db I next proceed to import
the data from a legacy db via a .csv file via a PostgreSQL command
prompt.
I have checked all the data. What appears to be happening is that for
an
Hi - I am trying to upload data from a CSV file. But I have to do some
processing before saving the data (such as slugifying a field). I am
trying to use the example provided by fellow users on this thread
(http://groups.google.com/group/django-users/browse_thread/thread/
Thank you, Tom. You are right! I shouldn't assign choices to a
ModelMultipleChoiceField. That's what caused the problem. But instead of
constructing a custom ModelMultipleChoiceField subclass, I abandoned "Model
Form" and simply did the following, which worked!
class myForm(forms.Form):
Tom,
Thanks for the reply. I read the history of that ticket and it is
exactly what I'm looking for. Too bad it's five years in the making and
still not in trunk.
So, what did you do, use one of the patches in the ticket? If so, which
one? If you have a snippet or something then please post
Or am I not using these concepts as intended?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/UvoTGqPzDBoJ.
To post to this group, send email to
I had to learn basic Php for a class. It's worth it to subscribe to
Lynda.com for a few months to get their online training videos. Removes
much pain. Like all training, it covers the basics and you really don't
know what you don't know until you try to do something.
-Original Message-
I just had to do the same thing. Tried to use the django-sane-testing package,
but didn't have much success there. In the end this ticket here:
https://code.djangoproject.com/ticket/2879 pretty much did the trick, with a
bit of updating as it didn't quite work with >= 1.2. I'll see if I can get
Hi !
I have written this small library a while ago :
http://code.google.com/p/django-cube/
. It is not exactly what you are looking for, but one of the aim is
indeed easy generation of html tables. I don't know if it can be of
any help to you, but you could check how the template tag is written
I'm hoping someone can help me improve this process.
Short:
I want to run Selenium tests during Django's unit tests.
When 'manage.py test' is running, there's no dev server available
for Selenium.
If I run my Django app separately, changes to the database are
cumulative instead
I might also recommend using the django-registration package.
Best,
William
On Wed, Aug 3, 2011 at 10:10 AM, Derek wrote:
> On Aug 3, 8:28 am, Bruce Dou wrote:
> > Why there is not a default user login, user register template?
> > And Can not find
On Aug 3, 8:28 am, Bruce Dou wrote:
> Why there is not a default user login, user register template?
> And Can not find some examples.
>
> What is your advice to create user auth pages?
The Django Admin has a default user register template; you'll be asked
to create default
LESS combines CSS and javascript which I think that goes beyond the
safe line, so I vote for SCSS ( http://sass-lang.com/ ) that also has
a python version ( http://github.com/Kronuz/pyScss ).
LESS is based on an "older" version of SCSS that didn't follow CSS
syntax (SASS).
On Aug 3, 1:52 pm, Tom
On Wed, Aug 3, 2011 at 10:10 AM, Jithin Emmanuel wrote:
> Can some one please point out how to use less css along with compressor
> extension?
> I use mac 10.6.8 and I am trying to use an existing project which was
> initially setup in windows.
> I am trying to figure out
Can some one please point out how to use less css along with compressor
extension?
I use mac 10.6.8 and I am trying to use an existing project which was
initially setup in windows.
I am trying to figure out what I should give here.
COMPRESS_PRECOMPILERS = (
On Wed, Aug 3, 2011 at 4:57 AM, sasa1...@gmail.com wrote:
> Thank you, DR. But I tried that before and it did not work for some reason.
> It basically skips "if Answer.is_valid():" and goes to "else".
>
> voss
>
I think this is because you are abusing your model form, and
django is best for you,.beacuse it is writed by Python.and python is a
clear language.
2011/8/3 Bruce Dou
> Or you can try Rails.
>
>
> On Wed, Aug 3, 2011 at 4:15 PM, Andre Lopes wrote:
>
>> If you want to start with a PHP Framework, consider
Dnia 2011-08-03, śro o godzinie 10:34 +1000, Sam Walters pisze:
> Hi i dont see what is complex about this.
--8<--
> The view 'rendering' as much as possible. So i assume you would rather
> have an initial template rendered. then perhaps have views that
> deliver data via JSON or something?
Or you can try Rails.
On Wed, Aug 3, 2011 at 4:15 PM, Andre Lopes wrote:
> If you want to start with a PHP Framework, consider CodeIgniter. It is
> the easier Framework for a starter.
>
>
> On Tue, Aug 2, 2011 at 3:46 PM, paulo couto wrote:
> > Ok
If you want to start with a PHP Framework, consider CodeIgniter. It is
the easier Framework for a starter.
On Tue, Aug 2, 2011 at 3:46 PM, paulo couto wrote:
> Ok thanks for the clarifications :
> I guess i'll go to PHP for now and when i have more prog. experience i'll
>
great
On 08/03/2011 01:44 AM, Russell Keith-Magee wrote:
On Tue, Aug 2, 2011 at 6:43 PM, eset wrote:
hi,
I am new to the Django list but I am a django fan (we dev with Django
for www.booki.cc)... anyways I wanted to encourage the Doc team and
individuals on the list to
On 2 August 2011 18:49, bruno desthuilliers
wrote:
>
> As far as I'm concerned, OSX is a pain (as a programming platform)
> whaver language / techno you want to use.
>
>
Don't be put off by this - it's certainly not my (nor many, many other
people's) experience of
The best you can do is look for a Referrer header in the request:
request.META['HTTP_REFERER']
which should be the URL of the originating page. However that may or may not
be there depending on user's browser etc etc.
Malcolm
On 3 August 2011 00:41, He Jibo wrote:
> Hi,
Thanks for that! Yeah there's nothing very complicated about it, but makes for
a useful little package.
T.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
Why there is not a default user login, user register template?
And Can not find some examples.
What is your advice to create user auth pages?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Why there is not a default user login, user register template?
And Can not find some examples.
What is your advice to create user auth pages?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi djangonauts,
what is your perfect setup of serving pyjamas static html, js, css
files and django as magic service over the web?
I really don't get it with best apache (or whatever) configuration. I
have eg. /services/ but how do *you* setup your url
redirection?
thx for all input.
Frank
--
31 matches
Mail list logo