Hi,
How can I create a Form with normal form elements and generic elements
together as ModelForm For using frontend CRUD.
For example;
Generic Model:
class Todo(models.Model):
user = models.ForeignKey(User, related_name="todo")
title = models.CharField(max_length=100, unique=False)
slug =
I read that article. The problem is that it's deployment specific. I
dint even know what host name "omh.cc" is, but I have a feeling that
you couldn't work on that from your laptop to your desktop without
changing something. What I propose isn't a is_production variable. I'm
proposing an explicit i
How it's better from both of the following:
1)
try:
from dev_settings import *
except ImportError:
pass
2)
if DEBUG:
from dev_settings import *
Because to have "project.is_dev" you'll have to write it somewhere already!
It's bootstrapping problem.
On Sat, Sep 25, 2010 at 12:01 AM, Y
SuperForm(ProjectForm, TodoForm):
pass
#stuff
peace,
Ryan McIntosh
Software Architect
PeaceWorks Computer Consulting
ph: (204) 480-0314
cell: (204) 770-3682
r...@peaceworks.ca
- Original Message -
From: "Harry"
To: "Django developers"
Sent: Friday, 24 September, 2010 10:17:02 GMT -
Forgive the slight tangent, but I think it's important to understand why
settings are defined in Python and not a markup language (like some RoR
settings are). It's a very intentional design decision that gives developers
the flexibility to define settings in a way that makes the most sense for
the
What if I want dev settings in version control?
What if I want "explicit"?
On Sep 24, 11:09 am, "burc...@gmail.com" wrote:
> How it's better from both of the following:
>
> 1)
> try:
> from dev_settings import *
> except ImportError:
> pass
>
> 2)
> if DEBUG:
> from dev_settings imp
On Sat, Sep 25, 2010 at 12:46 AM, Chuck Harmston
wrote:
> their project (with the help of a programming language). That is powerful.
...But is not very practical for 90% of django users, who have to
invent their own bikes.
> However, that flexibility isn't solely restricted to the method of defin
If everything is under version control, you'll need to detect the server
status somehow. Some options:
- check the absolute path of the settings file on the filesystem if you can
ensure this path is different on the production server
- import socket; and check socket.gethostname()
- check for "runs
On Sat, Sep 25, 2010 at 3:50 AM, Yo-Yo Ma wrote:
>
> What if I want dev settings in version control?
Please write in details.
Do you have single development configuration or multiple? Single
development PC or multiple?
> What if I want "explicit"?
Aren't they explicit enough?
Ok, version 3.
sett
On Fri, Sep 24, 2010 at 3:50 PM, Yo-Yo Ma wrote:
>
> What if I want dev settings in version control?
>
> What if I want "explicit"?
At this point this discussion is getting pretty far off-topic; can you
please take it to django-users?
Thanks,
Jacob
--
You received this message because you are
My technique, which allows you to:
- Segregate settings per environment
- Keep environmental settings under version control
- Have multiple environments on a single host (using an environment
variable set by the WSGI script)
- Keep passwords and other sensitive information out of so
Chuck - Thanks. Perhaps there isn't such room for improvement on the
topic.
Jacob - It appears to me that you don't read things before you comment
on them. That's two times in one post. Patience is a virtue, my
friend.
On Sep 24, 3:12 pm, Chuck Harmston wrote:
> My technique, which allows you to
On Sat, Sep 25, 2010 at 8:59 AM, Yo-Yo Ma wrote:
> Chuck - Thanks. Perhaps there isn't such room for improvement on the
> topic.
>
> Jacob - It appears to me that you don't read things before you comment
> on them. That's two times in one post. Patience is a virtue, my
> friend.
This conversation
Hi all,
I've just uploaded a first draft at a patch introducing logging into
Django [1]. I'm calling for feedback on this patch.
[1] http://code.djangoproject.com/attachment/ticket/12012/t12012-alpha1.diff
This patch is heavily drawn from the work that Vinay Sajip has done in
this area, but it a
14 matches
Mail list logo