Hi,
If i do
for key in request.POST.keys():
print request.POST[key]
Over this (which is the result of print request.Post):
I get:
Monatsreport
42
Should I not get lists ?
i.e:
[Monatsreport]
[2,29,42]
I need those other information from 'my_choice_fie
On 2012-02-29, at 09:46 , Szabo, Patrick (LNG-VIE) wrote:
> Hi,
>
> If i do
>
> for key in request.POST.keys():
>
> print request.POST[key]
>
> Over this (which is the result of print request.Post):
>
> u'29', u'42']}>
>
> I get:
>
> Monatsreport
>
> 42
>
> Should I not get lists ?
No
Exactly what i was looking for...thx a lot!
. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
XSLT Developer
LexisNexis
A-1030 Wien, Marxergasse 25
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 1 53452 1573
Fax: +43 1 534 52 146
-Ursprüngliche Nachricht-
Von: d
Also, having a form to parse and validate the POST data is really the way
to go. Even if you never actually show the form to the user, for example in
an AJAX callback, deferring all that responsibility and just use
"form.is_valid()" and "form.cleaned_data" is a lot better than doing
parameter v
https://docs.djangoproject.com/en/dev/intro/tutorial01/
I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
ran on Ubuntu 11.10 with PostgreSQL 9.1.2
Sorry for my newbie question.
I got to the portion where it asks me to import timezone from the
django.utils module but all I m
Here is my need:
{% if request.user.is_csr %}
{% block csr_block %}
{% endif %}
--
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/-/GwJ0AOf-DYYJ.
To p
try to use DjangoStack 1.4b1-0 instead of 1.3.1-1
On Wed, Feb 29, 2012 at 7:07 AM, WuWoot wrote:
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
> ran on Ubuntu 11.10 with PostgreSQL 9.1.2
>
> Sorry for my newbi
On Wed, Feb 29, 2012 at 7:20 AM, Patto wrote:
> Here is my need:
>
> {% if request.user.is_csr %}
> {% block csr_block %}
>
>
>
> {% endif %}
>
No. Inside child templates, most nodes outside of blocks are ignored.
You can do this instead:
{% block csr_block %}
{% if request.user.is_csr %}
On Wed, Feb 29, 2012 at 6:07 AM, WuWoot wrote:
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
> ran on Ubuntu 11.10 with PostgreSQL 9.1.2
>
You're doing the dev/trunk tutorial but have django 1.3 installed.
Eit
Wow. Legend! That's so much Annsi.
On 29 February 2012 18:00, Babatunde Akinyanmi wrote:
> Yes, they definitely will.
>
> On 2/28/12, akaariai wrote:
> > On Feb 28, 11:35 pm, Mario Gudelj wrote:
> >> Hi list,
> >>
> >> I was wandering if someone could recomend an easy django app for logging
>
Hi djangoers,
I've ran into an issue I'm not sure how to handle.
I have a form with 7 checkboxes representing 7 days of the week. I want to
collect the submitted days and use them in rrule to generate some dates.
The form field looks like this:
weekly_interval = forms.MultipleChoiceField(label=
On Wed, Feb 29, 2012 at 5:46 AM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:
> Should I not get lists ?
>
> ** **
>
> i.e:
>
> ** **
>
> [Monatsreport]
>
> [2,29,42]
>
I may be misunderstanding something, but for one reason lists are not
ordered, so you'd never kn
Hello,
I've gotten this json object back from django.
I was wondering how do we use ajax/jquery to retrieve just the words that are
highlighted?
I'm stumped.
{"new_list":{"blue": {"sub_datetime": "2012-02-29 22:14:44", "exp_datetime":
"2012-03-07 22:14:44", "keyword": "blue"}, "teleport": {"
On Wed, Feb 29, 2012 at 1:46 PM, Andre Terra wrote:
> I may be misunderstanding something, but for one reason lists are not
> ordered, so you'd never know which item to get, agreed?
>
Lists are ordered, I think you are confusing something :)
Cheers
Tom
--
You received this message because you
The log entry model above is very much like what is used in the Admin.
You might want to investigate that model, too, for logging who-did-
what. It can be found from django.contrib.admin.models.
The reason why I use my own is that I usually have some extra columns
related to the audit trail handli
Excuse my brainfart moment.. sets and dicts are not ordered!
On Wed, Feb 29, 2012 at 11:32 AM, Tom Evans wrote:
> On Wed, Feb 29, 2012 at 1:46 PM, Andre Terra wrote:
> > I may be misunderstanding something, but for one reason lists are not
> > ordered, so you'd never know which item to get, agre
A site I built several years ago is breaking randomly today due to the
extra leap year day. Any help on this would be appreciated. I can't
track it down.
Traceback (most recent call last):
File "/home/nolenjb/django/django_src/django/core/handlers/base.py" in
get_response
68. callback, callbac
On Wed, Feb 29, 2012 at 3:09 PM, furby wrote:
> A site I built several years ago is breaking randomly today due to the
> extra leap year day. Any help on this would be appreciated. I can't
> track it down.
>
> Traceback (most recent call last):
> File "/home/nolenjb/django/django_src/django/core
Hi , i am using django framework at the back end
I have used facebook s social plugin login for authentication
My Facebook Login Page
http://connect.facebook.net/en_US/all.js";>
FB.init({
appId:'My_app_id', cookie:true,
The guy I built this for does not want to pay me to maintain it, so
it's still on .96. And yet when something breaks randomly he wonders
why. Debug enabled today for debugging. There is no dev
environment. Only production for this.
Here's the urlconf. I've literally commented out every urlpat
On Wed, Feb 29, 2012 at 3:33 PM, furby wrote:
> The guy I built this for does not want to pay me to maintain it, so
> it's still on .96. And yet when something breaks randomly he wonders
> why. Debug enabled today for debugging. There is no dev
> environment. Only production for this.
Custome
Caught it. Haha. What a funny bug. From models.py:
196 d = dt.datetime.today()
197 expires = d.replace(year=d.year+1)
There is no Feb. 29th, 2013. So this breaks. Thx for the help!
On Feb 29, 9:50 am, Tom Evans wrote:
> On Wed, Feb 29, 2012 at 3:33 PM, furby wrote:
> > The guy I built thi
use something like >>> d + datetime.timedelta(days=365)
http://docs.python.org/library/datetime.html#timedelta-objects
Cheers,
AT
On Wed, Feb 29, 2012 at 12:59 PM, furby wrote:
> Caught it. Haha. What a funny bug. From models.py:
>
> 196 d = dt.datetime.today()
> 197 expires = d.replace(ye
This might help you in managing the session. I had a similar problem a
year ago and used the following snippet:
http://djangosnippets.org/snippets/2065/
Cheers!
On Wed, Feb 29, 2012 at 5:29 PM, dummyman dummyman wrote:
> Hi , i am using django framework at the back end
>
> I have used facebook
The problem is: This doesn't work, as is well-known, because the current code
breaks sql/.sql files into lines, and that fails if the SQL
statement is multiline.
The fix is generally noted to be, to quote mtredinnick on bug #3214:
> If you want to pass in complex SQL, catch the post-syncdb sign
Hi,
I saw there was some problems in the format which is rendered,
validated and stored using a DateField in a form, and in a model. Are
they still unresolved in 1.3.1 versio?, it's not working for me
My form:
32 class EventForm(forms.Form):
33 name =
forms.CharField(label=_('name'),ma
furby wrote:
> Caught it. Haha. What a funny bug. From models.py:
>
> 196 d = dt.datetime.today()
> 197 expires = d.replace(year=d.year+1)
>
> There is no Feb. 29th, 2013. So this breaks. Thx for the help!
>
> On Feb 29, 9:50 am, Tom Evans wrote:
>> On Wed, Feb 29, 2012 at 3:33 PM, furby
Hello, if I have the following Model:
class A:
name
class B:
name
a = models.ForeignKey(A)
class C:
name
b = models.ForeignKey(B)
And let's suppose that in the Admin Site I have a Filter in the C list
that refers to the A model. Is there a way to keep that filter when I
am g
Hello All,
I'm going through the tutorial on djangoproject.com, and can't seem to
hurdle over this section that reads "Write views that actually do
something"
Here's the code I have so far, which is directly copied from the
tutorial or prescribed by the tutorial:
views.py:
"from django.template
You have to give template directories, not template names in the
settings.py.
Thanks,
Anoop
atm
___
Life is short, Live it hard.
On 1 March 2012 01:16, Django_for_SB wrote:
> Hello All,
>
> I'm going through the tutorial on djangoproject.com, and can't seem to
> hurdle over this section that
Hi Anoop,
Thank you for the kind reply, I've tried that already. Here are the 3
variations that I've attempted so far within settings.py in TEMPLATE_DIRS:
'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/index.html'
'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/'
'C:/Python27
Try:
'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\index.html'
'C:\Python27\my_Djando_projects\mysite\My_Templates\polls\'
'C:\Python27\my_Djando_projects\mysite\My_Templates\'
Or:
abspath = lambda *p: os.path.abspath(os.path.join(*p))
PROJECT_ROOT = abspath(os.path.dirname(__file__))
Hi all,
I have the following model:
class Todo(models.Model):
name = models.CharField(max_length=200)
due_date = models.DateTimeField()
location = models.CharField(max_length=200)
type = models.CharField(max_length=4, choices=TODO_TYPES)
owner = models.For
Hi,
I have problems installing django for jyhton.
I followed instructions on the django / django-jython site, but can't
import django from jython.
Jython 2.5.3b1
django_jython-1.3.0b2
### INSTALLATION
# after
# - installing jython
# - adding JYTHON_DIR/bin to path:
> jython pip install django-j
Hi Django Users,
I'd like to use the django template system to generate a file
'users.cfg' that gets read some dispatching software. Is it possible
to get django to generate this file and replace the existing one?
Thanks
-Paul
--
You received this message because you are subscribed to the Goog
Found an answer here
http://stackoverflow.com/questions/9210117/attributeerror-str-object-has-no-attribute-n-when-using-dateutil
Thanks guys.
On 1 March 2012 00:30, Mario Gudelj wrote:
> Hi djangoers,
>
> I've ran into an issue I'm not sure how to handle.
>
> I have a form with 7 checkboxes rep
On Wed, Feb 29, 2012 at 8:22 PM, Mauro Sánchez wrote:
> Hello, if I have the following Model:
>
> class A:
> name
>
> class B:
> name
> a = models.ForeignKey(A)
>
> class C:
> name
> b = models.ForeignKey(B)
>
> And let's suppose that in the Admin Site I have a Filter in the C list
On Wednesday, 29 February 2012 20:03:21 UTC, Django_for_SB wrote:
>
> Hi Anoop,
>
> Thank you for the kind reply, I've tried that already. Here are the 3
> variations that I've attempted so far within settings.py in TEMPLATE_DIRS:
>
> 'C:/Python27/my_Djando_projects/mysite/My_Templates/polls/index
On Wed, Feb 29, 2012 at 10:55 PM, Marc Aymerich wrote:
> On Wed, Feb 29, 2012 at 8:22 PM, Mauro Sánchez wrote:
>> Hello, if I have the following Model:
>>
>> class A:
>> name
>>
>> class B:
>> name
>> a = models.ForeignKey(A)
>>
>> class C:
>> name
>> b = models.ForeignKey(B)
>>
>>
Hey,
I just thought I'd give you a quick reply. First, you can save the rendered
output of a template using this:
https://docs.djangoproject.com/en/1.3/ref/templates/api/#rendering-a-context
Then, take that String and write over that 'users.cfg' file. For example,
http://docs.python.org/tutoria
On Wed, Feb 29, 2012 at 3:16 PM, Tom wrote:
> Is it not possible to filter based on a property?
queries are compiled to SQL to be sent and processed at the database;
properties are Python code, the database knows nothing about them.
that's why the compiler only allows you to use database fields o
Thank you very much for that Javier.
After flailing around with raw SQL for a while I realised that Django
has conveniently provided a powerful set of field lookups that I did
not know about.
I have ended up doing this, which is a million times simpler than what
I was previously attempting:
...
Hi all:
My ask is here: http://dpaste.com/709735/
Thanks...
--
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 group, send email to
django-users+unsubsc
I am now migrating from one version to another. the vendors have given
my just 3 files with .vmdk and .vmx extension. however i installed
vmware and finished the setup though, i wanted to view the code of my
new version. any idea how to view the code of the product in vmware?
Thanks in advance.
Hi ,
i am using django s view function to invoke py*thon script* to run in
background.
now i want to pass command line args to the script
here is wat i did
subprocess.Popen([sys.executable,"script_name","command_args1"])
i got the error
execv requires arg 2 to be a string
please help me
--
http://itsrealworld.com/wp-content/plugins/podpress/optional_files/wp1.5_2.0/wp-admin/grtkds.html
--
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 group,
46 matches
Mail list logo