Help:How to post data to the admin form by urllib2 ?

2010-07-27 Thread jerry
Hi: I build a website and want to login the admin form by python code. I have disabled the CSRF in my project and use urllib2 to post data. here are my codes: import urllib import url

Re: Django template language

2007-10-08 Thread Jerry
xt['media'] = self context['mimetype'] = self.mimetype return template.render(context) You could then have a separate template just for tags and for tags, perhaps in a separate template folder called, say, "media". Jerry --~--~-~--~~-

admin errors with null datefield in sqlite3

2008-11-12 Thread Jerry Stratton
rary/Python/2.5/site-packages/django/db/backends/sqlite3/ base.py", line 167, in execute return Database.Cursor.execute(self, query, params) OperationalError: user-defined function raised exception If I apply patch #3501, that error goes away and I get the e

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Jerry Stratton
the new inlines system: class SoftwareInline(admin.StackedInline): model = Software class CategoryAdmin(admin.ModelAdmin): inlines = [SoftwareInline] Besides StackedInline you also have TabularInline. Jerry --~--~-~--~~~---~--~~ You received this me

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Jerry Stratton
On Sep 19, 6:45 am, Jerry Stratton <[EMAIL PROTECTED]> wrote: > class SoftwareInline(admin.StackedInline): >         model = Software > > class CategoryAdmin(admin.ModelAdmin): >         inlines = [SoftwareInline] Edit: shouldn't post before caffeine. The above might wo

IF no longer short-circuits in 1.2?

2010-04-17 Thread Jerry Stratton
It looks like {% if %} with OR or AND no longer short circuits under 1.2-beta-1. class Page(models.Model): ... def beTrue(self): print "BEING TRUE" return True def beFalse(self): print "BEING FALSE" return Fa

Re: extreme newbie, cannot get install to work

2010-06-12 Thread Jerry Schrader
oh, well, Windows, and Linux Ubuntu. I was in Ubuntu when I wrote. On Sat, Jun 12, 2010 at 4:59 PM, Dave E wrote: > To help guide answers, please state which platform are you using (OS > X, Windows, Linux)? > > -- > You received this message because you are subscribed to the Google Groups > "Dja

include and ifchanged inconsistent behavior (variables vs. strings)

2010-06-26 Thread Jerry Stratton
{% ifequal page.linkDefinition "parts/dd/d6-icon.html" %} {% include "parts/dd/d6-icon.html" %} {% endifequal %} {% endifequal %} {% end

Re: include and ifchanged inconsistent behavior (variables vs. strings)

2010-06-26 Thread Jerry Stratton
Sorry, forgot to mention, I'm using Django 1.2.1. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googleg

debug=True changes behavior of admin "fields"

2010-08-16 Thread Jerry Stratton
I have this in my admin.py: class TutorialAdmin(admin.ModelAdmin): fields = ( ('title', 'category'), 'description', 'tags' ) admin.site.register(Tutorial, TutorialAdmin) It works fine when DEBUG = False in settings.py, but it fails

Re: debug=True changes behavior of admin "fields"

2010-08-16 Thread Jerry Stratton
dmin definitions; that makes sense. Jerry -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegr

startup query slows Django on Red Hat Enterprise Server 6.0

2012-03-21 Thread Jerry Stratton
We are in the process of moving a Django 1.3.1 project from a Mac OS X 10.5 server to a Red Hat Enterprise Server 6.0 VM. For most things, the new server is about 2 times faster than the old one. For Django queries, the new server is much slower. A single objects.get that should take less than

Need local engineering support

2012-05-05 Thread Jerry Snee
company or graduate from same school) Desired hourly rate or willingness to work on Project Delivery formula Jerry Snee, Jr. President/CEO Neuron Robotics, LLC 99 Prescott Street Worcester, MA 01605 http://neuronrobotics.com -- You received this message becau

strange problem when throung official tutorial

2014-07-06 Thread Jerry Wu
Hi, all, I think I follow every step on tutorial 05 'The Django Test Client' part with shell. When I created a new Poll with questions "Who is your favorite beatles?" and save, some thing should came when I called response.content. But it still told me "No Polls are available". I have changed

Django connecting to MySQL via Mysql-connector fails

2014-09-23 Thread Jerry Xue
Hi, I'm learning django with PyDev, MySQL as backend. According to doc I used Oracle's MySQL connector to communicate with db: > > The Python Database API is described in PEP 249 > . MySQL has two prominent > drivers that implement this API: > >- My

Re: how to pass request.user in .hbs file in django

2014-12-02 Thread Jerry Dumblauskas
missing the t? reques.user to request.user On Tue, Dec 2, 2014 at 7:42 AM, JAI PRAKASH SINGH < jaiprakashsingh...@gmail.com> wrote: > hello all, > > i am very new to django , i have just started to work on django , > > i am using .hbs file in django project > my aim is to use request.user in .hbs

NoReverseMatch error when following Django Tutorial

2014-06-22 Thread Jerry Wu
Dear every one, I am new to Python and Django and am following the Tutorial to start my first site. But I am getting an error of NoReverseMatch error when vote. It should be redirected but error below happened. NoReverseMatch at /polls/1/vote/ Reverse for ' results' with arguments '(1,)' and k

Re: NoReverseMatch error when following Django Tutorial

2014-06-22 Thread Jerry Wu
It works! Thank you very much! On Sunday, June 22, 2014 7:54:41 PM UTC+8, Noxxan wrote: > > Hi > It looks like you have in polls/views.py whitespace in reverse function > ("polls: results"), try without it ('polls:results"). > > On Sunday, June 22,

Time Zone Problem when following on tutorial

2014-06-23 Thread Jerry Wu
Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tried but failed with valuerror incorrec

Re: Time Zone Problem when following on tutorial

2014-06-24 Thread Jerry Wu
Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? On Tuesday, June 24, 2014 7:26:52 AM UTC+8, Mike Dewhirst wrote: > > On 24/06/2014 8:34 AM, Jerry Wu wrote: > > Dear every one, > > >

Re: Time Zone Problem when following on tutorial

2014-07-03 Thread Jerry Wu
ursday, June 26, 2014 4:48:44 AM UTC+8, Mike Dewhirst wrote: > > Jerry > > I just figured it out and it is simple. Time is constant and all you need > to do is decide how* you want to display it. The TIME_ZONE setting tells > the server. > > An event happens at the same tim

Questions about model form views

2016-04-13 Thread Jerry Bash
to use with specific fields in that form? As in a 'manual' ModelFrom, ( https://docs.djangoproject.com/en/1.9/topics/forms/modelforms/#overriding-the-default-fields ) one can specify a widget, overriding the default. Thanks, Jerry -- You received this message because you are subscr

Strange intermittent UUID bug

2018-11-20 Thread Jerry Vinokurov
Hi all, We have a project that uses UUIDs as a primary key for some objects. Our project is deployed on AWS via Elastic Beanstalk. After the initial deploy, everything works fine, but at some point, we encounter the following error, deep within Django: ValidationError: ["'7c6eee47-53d0-48f6-a8

Re: Strange intermittent UUID bug

2018-11-20 Thread Jerry Vinokurov
Addendum: I forgot to say that our version of Django is 2.1.3. -- 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

Django Project

2021-06-13 Thread Duncan Jerry
you, push me a mail at jeremiahaded...@gmail.com Thanks Jerry Duncan -- 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...@google

Re:

2019-09-10 Thread Duncan Jerry
you should post images of the errors you are getting so that its easy for us to figure out a solution for you On Tue, Sep 10, 2019 at 1:09 PM Abhishek Ghaskata < abhishekghaskata1...@gmail.com> wrote: > I am getting error models has no 'objects' member. > So what should I do? > > -- > You receive

Re:

2019-09-10 Thread Duncan Jerry
image for > keywords is really impossible. > > ti 10. syysk. 2019 klo 23.36 Duncan Jerry > kirjoitti: > >> you should post images of the errors you are getting so that its easy for >> us to figure out a solution for you >> >> On Tue, Sep 10, 2019 at 1:09 PM Abhis

Re: User Password Automatically changes after 15 days

2019-10-14 Thread Duncan Jerry
this question should be directed to AWS customer care line, if u reach out to them, they will reply On Mon, Oct 14, 2019 at 9:26 AM developer panther wrote: > Hello all, > > I am facing a serious issue in production, that password of users table is > automatically changes after 15 days or probab

Re: Internship

2019-11-22 Thread Duncan Jerry
I would love to work as a back end developer too, am based in Nigeria.. This is my github repo https://github.com/aloko001 -- 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