Hi Mohammad,
this can be easily achieved using a custom management command - check the
Django documentation.
HTH
Jirka
-Original Message-
From: alghafli
Sender: django-users@googlegroups.com
Date: Wed, 30 Jul 2014 07:02:59
To:
Reply-To: django-users@googlegroups.com
Subject
thank you very much .. how is the template for such a view ... I've put each
form in a form tag like that
EMETTEUR
{% csrf_token %}
{{ emet_form.as_p }}
On Wed, Jul 30, 2014 at 10:04 AM, Devin Cky wrote:
>
>
>
>
> thank you very much .. how is the template for such a view ... I've put each
> form in a form tag like that
Only one can be submitted at a time, so if you want all three
Forms to be submitted at the same time, they must all be inside
I tried it .. but it is only the first form ( {{ emet_form.as_p }})
that
is saved..
{%
csrf_token %}
{{ emet_form.as_p }}
{{ des_form.as_p }}
{{ fich_form.as_p }}
Hi,
aggree in all points Russel, these features are also my favourite ones.
- html email support in different places and the password reset mail
template makes life much easier.
Greetings, Marc
Am Mittwoch, 30. Juli 2014 06:54:21 UTC+2 schrieb Russell Keith-Magee:
>
> Hi Ryan,
>
> On W
Hi Brad,
i would register a 'post_save' signal
(https://docs.djangoproject.com/en/dev/ref/signals/#post-save) on the first
model and then, just hit the save method on the Application model, this
will automaticly update the time.
Cheers,
Marc
Am Mittwoch, 30. Juli 2014 03:26:21 UTC+2 schrieb B
Hi,
are you using a virtualenv? Your lessc installation seems to point to a
ruby one. (/Library/Ruby/Gems/2.0.0/gems/
less-2.4.0/bin/lessc)
Be shure to have the correct path, try `which lessc` to see where it points
to.
Cheers
Marc
Am Mittwoch, 30. Juli 2014 04:08:47 UTC+2 schrieb Chen X
Please stop replying directly to me - I am subscribed to the list,
this is how we started talking, I do not need an additional copy in my
inbox.
On Wed, Jul 30, 2014 at 10:29 AM, Devin Cky wrote:
>
>
>
> I tried it .. but it is only the first form ( {{ emet_form.as_p }})
> that is saved..
How can we override the submit_line.html to disable the save buttons in
django admin site
I have tried in following ways:
1-> Using Javascript
2->https://github.com/django/django/blob/master/django/contrib/admin/templatetags/admin_modify.py#L23
by overriding these link
But I want to change it
Hello,
I have following model definition and when I try to create a migration
using command, 'python manage.py schemamigration asset_mgmt
--initial' I am getting following error:
CommandError: One or more models did not validate:
asset_mgmt.alarmtable: 'polling_config' has a relation with model
On Wed, Jul 30, 2014 at 12:25 PM, Kamal Kaur wrote:
> Greetings!
>
> What I have done:
> There are four tables, from which I have generated ModelForms. Getting
> the WorkerDetails from one side, adding the salary and attendance
> things from the other side as the view says. If there is at least on
Hi,
you've added a relation to the AssetPollingConfig model which is not
defined.
Cheers
Am Mittwoch, 30. Juli 2014 13:34:52 UTC+2 schrieb Subodh Nijsure:
>
> Hello,
>
> I have following model definition and when I try to create a migration
> using command, 'python manage.py schemamigration
duh! Thank you so much... Sometimes when you are on short-sleep you
make silly mistakes!!
-Subodh
On Wed, Jul 30, 2014 at 4:54 AM, wrote:
> Hi,
>
> you've added a relation to the AssetPollingConfig model which is not
> defined.
>
> Cheers
>
> Am Mittwoch, 30. Juli 2014 13:34:52 UTC+2 schrieb Su
Hi,
you are calling 'is_valid' in your view, which should be an method call:
a_valid = aform.is_valid*()*
m_valid = mform.is_valid*()*
p_valid = pform.is_valid*()*
There where a few hooks in your view, for example: you check for
'is_valid()' but there is no code to execute after. I've changed
Hi,
have a look there:
http://stackoverflow.com/questions/8442724/django-admin-disable-editing-and-remove-save-butttons-for-a-specific-model
Guess it is the right way to go.
Cheers
Am Mittwoch, 30. Juli 2014 13:32:18 UTC+2 schrieb Akshay Mukadam:
>
> How can we override the submit_line.html to
Hello,
I am using internationalization feature in djnago framework.
In my setting.py I have following languages set:
LANGUAGES = (
('de', ugettext('German')),('en', ugettext('English')),('mr',
ugettext('Marathi')),('mwr', ugettext('Marwari')),('mun', ugettext\
('Munda')),('ne', uget
Its not working
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@goog
Hi,
have a look at: http://www.i18nguy.com/unicode/language-identifiers.html
The localization in django is based on region and language codes, some of
them are the same (like 'de') and some split (like 'en-us'). For 'mr'
you'll need to add the area code of india iirc.
Cheers
Am Mittwoch, 30.
Here's a list of locales in Django:
https://github.com/django/django/tree/master/django/conf/locale
Am Mittwoch, 30. Juli 2014 14:47:03 UTC+2 schrieb ma...@tubeards.com:
>
> Hi,
>
> have a look at: http://www.i18nguy.com/unicode/language-identifiers.html
>
> The localization in django is based on
Hi,
I have a problem with leaking Postgres DB connections even if I
have CONN_MAX_AGE=0. Every time I start the server and stop it by
Ctrl+Break a DB connection is leaked.
When I check from Postgres there is bunch of "idle" connections with
following content:
SELECT "django_migrations"."app",
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I just asked around on IRC and no one was able to help me. Also the
entries on StackOverflow are not that helpful in my situation either.
Right now I am unable to access my static content in my project. Going
to 127.0.0.1:8000/static/rango.jpg yi
Hi,
STATIC_PATH should be STATIC_ROOT.
Cheers
Am Mittwoch, 30. Juli 2014 17:10:17 UTC+2 schrieb Steven Williams:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> I just asked around on IRC and no one was able to help me. Also the
> entries on StackOverflow are not that helpful
Hi Carlos,
I’ve read all the release notes and already have my short list of what I think
the best features are. But this will be heavily skewed towards the types of
Django apps I create and how I use Django.
I wanted to know what the Django community thought were the best new features.
Speaki
Thanks Marc and Russ for your replies, greatly appreciated.
Here are my favorites:
App Loading
Applications can run code at startup, before Django does anything else, with
the ready() method of their configuration.
Apps now don’t need a models.py to be a valid app.
Applications can be given a ve
Hi Folks,
We are in our initial deployment stage, and have decided to deploy
django(1.6.X) on Nginx, and trying to decide which WSGI server to use.
I am positive all have something to offer and may not be fair just to
throw out "which one to use", but I was hoping to get some guidance on the
Hi all from spain and sorry for my bad english ;)
Hi a have in this model 2 custom fields: "responsive" and "engine"
class template(models.Model):
state = models.IntegerField() # estado del template 1= activo, 0=
inactivo
tid = models.IntegerField(primary_key=True)
price = models.In
I would use the @property decorator.
class template(models.Model):
...
@property
def responsive(self):
try:
responsive = templates_propiedad.objects.get(propiedad="features",
valor="responsive", plantilla=self)
salida = "1"
except:
> Hi Folks,
> We are in our initial deployment stage, and have decided to deploy
> django(1.6.X) on Nginx, and trying to decide which WSGI server to use.
> I am positive all have something to offer and may not be fair just to
> throw out "which one to use", but I was hoping to get some guidanc
I have a basic Django application which uses sqlite as a backend on low-end
hardware (eg. Raspberry Pi). I have the RPi collecting sensor data and
logging it. I am trying to get the last process value, timestamp, and
associated sensor name in an efficient way, but can't seem to figure it out
wi
Excellent.
Thanks for the share.
How backward compatible is it?
On 29/07/14 17:51, Santiago Lamora wrote:
> 2014-07-29 16:50 GMT+02:00 John :
>
> > How can one submit 3 forms simultaneously?? Even ajax, is on by one!
> >
> >
> Quotting
> https://docs.djangoproject.com/en/dev/ref/forms/api/#pref
Definitely the schema migration :)
I enjoy lots the App Loading and the Check framework too.
On 29/07/14 18:12, Ryan Blunden wrote:
> Hi everyone,
>
> I'm giving a lightening talk at the San Francisco Django meetup tomorrow
> night about some of the awesome new features in Django 1.7.
>
> I wa
Agree with Jirka,
I'm just adding the link:
https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/
On 30/07/14 07:53, jirka.vejra...@gmail.com wrote:
>
> Hi Mohammad,
>
> this can be easily achieved using a custom management command - check the
> Django documentation.
>
>
Hi Everyone:
I would like to call a function when my project starts, basically I want to
call a do_something() when I run python manage.py runserver. However, when
I put it into settings.py, it gets called twice, but I only want it to
execute once.
Is there a good way to do it.
Thanks
--
⚡ Che
Which version of Django are you running?
On 30/07/14 15:46, Chen Xu wrote:
> Hi Everyone:
> I would like to call a function when my project starts, basically I want to
> call a do_something() when I run python manage.py runserver. However, when
> I put it into settings.py, it gets called twice, bu
I am running 1.6.2
On Wed, Jul 30, 2014 at 4:02 PM, aRkadeFR wrote:
> Which version of Django are you running?
>
> On 30/07/14 15:46, Chen Xu wrote:
> > Hi Everyone:
> > I would like to call a function when my project starts, basically I want
> to
> > call a do_something() when I run python man
so im using the following java script
var cpuChart = document.getElementById('cpu').getContext('2d');
new Chart(cpuChart).Line(cpuData,{
bezierCurve: false,
datasetFill : false,
legendTemplate : "-legend\"><%
for (var i=0; i\"><%if(datasets[i].label){%><%=datasets[
On 31/07/2014 5:57 AM, Chen Xu wrote:
Hi Everyone:
I would like to call a function when my project starts, basically I want
to call a do_something() when I run python manage.py runserver. However,
when I put it into settings.py, it gets called twice, but I only want it
to execute once.
Is there
Jirka, aRkadeFR,
Thank you very much. I was able to create the command successfully.
Regards,
Mohammad
On الأربعاء 30 تـمـوز 2014 22:41, aRkadeFR wrote:
Agree with Jirka,
I'm just adding the link:
https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/
On 30/07/14 07:53, jirka
Thank you both for those suggestions. I got Tundebazby's to work as it was
closest to what I was doing. I'll have to study the post_save some more.
On Wednesday, July 30, 2014 2:33:57 AM UTC-4, Tundebabzy wrote:
>
> Hi Brad, my response is inline
>
> On 30 Jul 2014 02:26, "Brad Rice" > wrote:
> >
Hello, you can use 'verbatim':
https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#verbatim
On Wednesday, July 30, 2014 6:59:05 PM UTC-4:30, G Z wrote:
>
> so im using the following java script
>
> var cpuChart = document.getElementById('cpu').getContext('2d');
> new Chart(cpuCha
40 matches
Mail list logo