Actually I did, see my last comment ;)
On Nov 15, 2012, at 8:32 PM, Russell Keith-Magee
wrote:
> Hi Anil,
>
> Before you started developing your own, did you consider doing a quick google
> search to see if there were any existing solutions that implemented LDAP
> authentication for Django
Hello all,
I'm new to Django and somewhat Python (a PHP refugee). I have been
learning Python 3.0 so decided to give 1.5 a run. I tried to run the
command below and mysqldb is missing. I noticed on
http://mysql-python.blogspot.com/ that mysqldb won't be ready for 3.0 until
the 1.3 release.
while using django forms i gt an error 'view does not exist'
from django import forms
class Employeeprofileform(forms.Form):
employee_name = forms.CharField(max_length=100)
employee_number = forms.IntegerField()
employee_email = forms.EmailField()
employee_mobilenumber = for
Hi Anil,
Before you started developing your own, did you consider doing a quick
google search to see if there were any existing solutions that implemented
LDAP authentication for Django?
http://packages.python.org/django-auth-ldap/
Yours,
Russ Magee %-)
On Fri, Nov 16, 2012 at 12:23 PM, Anil Ja
I am trying to build a custom User model with a custom authentication backend
(ldap).
Here is what I've done so far:
Custom LDAP authentication backend:
class LDAPBackend:
def get_user(self, user_id):
try:
return LDAPUser.objects.get(pk=user_id)
except LDAPUser.Do
I tried to override delete() method of Car model and it works when i delete
single object using admin site.
But it doesnt work with deleting many objects at once.
So i ended up with this:
def post_delete_image_deleting(sender, instance, **kwargs):
storage, path = instance.photo.storage, insta
I don't think you can use 2 views on the same page.
what you can do is pass 2 values to the same page to display.
so in the 2nd view you will do as follows:
return render_to_response("kundendaten.html", { 'row': row,'current_date':
now }, context_instance=RequestContext(request))
and make sure t
I have the very same problem and can't figure out what's wrong...
First I created a profile for ipython and edited the ipython_config.py,
which gets executed when I launch 'ipython'.
But when I start manage.py shell or shell_plus it's not executed (I still
get the Django iPython shell though).
W
I just discovered something fantastic about Django I didn't know before.
I realise that isn't saying much about my knowledge. But I'm impressed.
I recently wrote a new model and put in a lot of time making it do stuff
and writing the tests to prove it worked. I realised I had forgotten to
sync
Thanks Arnold - makes sense.
Cheers
Mike
On 16/11/2012 11:01am, Arnold Krille wrote:
On Fri, 16 Nov 2012 08:43:04 +1100 Mike Dewhirst
wrote:
On 16/11/2012 3:52am, Arnold Krille wrote:
Why do you want to do this only in the admin interface?
Its a generic thing: every time you save/change a p
Thanks! Both methods are useful.
четверг, 15 ноября 2012 г., 18:02:02 UTC+4 пользователь lingrlongr написал:
>
> I've use something like this:
>
> class Car(models.Model):
> #some fields
> photo = models.ImageField(upload_to='cars')
>
> def delete(self, *args, **kwargs):
> stor
On Fri, 16 Nov 2012 08:43:04 +1100 Mike Dewhirst
wrote:
> On 16/11/2012 3:52am, Arnold Krille wrote:
> > Why do you want to do this only in the admin interface?
> > Its a generic thing: every time you save/change a period you should
> > set the end-date of the previous one. So I would do this with
Tom,
Excellent article! Thanks!
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we nee
On 16/11/2012 3:52am, Arnold Krille wrote:
Why do you want to do this only in the admin interface?
Its a generic thing: every time you save/change a period you should set the
end-date of the previous one. So I would do this with a post-save hook (aka
signal) directly in the models.py. Or maybe ev
Hi,
On Thu, 15 Nov 2012 18:15:37 +0100 Carsten Fuchs
wrote:
> Am 15.11.2012 17:52, schrieb Arnold Krille:
> > On Thursday 15 November 2012 17:12:09 Carsten Fuchs wrote:
> >> [...]
> >> (Note that it is not enough to consider the Period that changed --
> >> rather, it is the 'end' in *another* per
I am using a custom field "SeparatedValuesField" for saving array
values in my models. When i tried to save the values in it, in the
python shell, it gives the following error:
TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'
Is anybody know, what error is this, and h
On Thu, Nov 15, 2012 at 3:49 PM, rh wrote:
> In the djangocon lightning talk there was mention of this disconnect
> between "works on runserver" but not in production env.
>
> Not a problem restricted to django. I've been checking out a lot of
> frameworks in different languages and most suffer th
Hi Arnold,
Am 15.11.2012 17:52, schrieb Arnold Krille:
On Thursday 15 November 2012 17:12:09 Carsten Fuchs wrote:
[...]
(Note that it is not enough to consider the Period that changed --
rather, it is the 'end' in *another* period (the one "before" it) that
must be modified and saved, too.)
Wh
On Thursday 15 November 2012 21:03:56 siddharth ghumre wrote:
> You can just copy your app from your local machine to server.
> Just keep in mind to do the necessary changes in the settings.py file.
And remember that you might have a database that (if its on the same machine
but not a local sqlit
On Thursday 15 November 2012 17:12:09 Carsten Fuchs wrote:
> using Django 1.3 (soon 1.4), we use models like these:
> class Staff(models.Model):
> name = models.CharField(max_length=80)
> class Period(models.Model):
> staff = models.ForeignKey(Staff)
> begin = models.DateField()
>
Hi all,
using Django 1.3 (soon 1.4), we use models like these:
class Staff(models.Model):
name = models.CharField(max_length=80)
class Period(models.Model):
staff = models.ForeignKey(Staff)
begin = models.DateField()
end = models.DateField(editable=False)# see below
You can just copy your app from your local machine to server.
Just keep in mind to do the necessary changes in the settings.py file.
Enjoy :)
On Thu, Nov 15, 2012 at 8:24 PM, Lewis wrote:
> Hello,
>
> In order to transfer the app from local machine to another server. what
> should I do? Can I jus
Hello,
In order to transfer the app from local machine to another server. what
should I do? Can I just copy everything or do I need to reinstall app that
I install?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on t
I have tryed this way before, but it doesent work. it has many fails in the
code... one of these are: "AttributeError: 'Settings' object has no
attribute 'DATABASE_COLLATE'"
thats why i searched another way... if you can help me to make this run, i
will use this. but i asked many times for that
On 2012-11-15 14:29:46 +, Lewis said:
I found packages from this site
http://www.djangopackages.com/packages/p/sorl-thumbnail/
I wonder is there any steps that you can guide me to install? it
doesn't have to be the above packages, but I want to know the basic
packages installation in short
I found packages from this site
http://www.djangopackages.com/packages/p/sorl-thumbnail/
I wonder is there any steps that you can guide me to install? it doesn't
have to be the above packages, but I want to know the basic packages
installation in short steps that I can follow
Thanks
--
You re
Thanks, I will do this next time when I create new project, now it is fine.
Yes, admin app is included in the installed apps settings
Le mercredi 14 novembre 2012 17:36:39 UTC+1, Tundebabzy a écrit :
>
> Why not manually drop the database for your project and syncdb again.
> Also make sure you
I've use something like this:
class Car(models.Model):
#some fields
photo = models.ImageField(upload_to='cars')
def delete(self, *args, **kwargs):
storage, path = self.photo.storage, self.photo.path
super(Car, self).delete(*args, **kwargs)
storage.delete(path)
I think you need to do this with a signal, or on post_save
On Thu, Nov 15, 2012 at 12:48 AM, Sergey Seleznev wrote:
> Hi! I'm new to python and django(well, and web dev too).
> I'm using python 2.7 and django 1.4
> I went through the tutorial and then got issue with files managing.
> I have model
Hello, can you help me with my problem? I need to attach some additional
data with my rendered template to the client side in Jquery.ajax(data). If
i do so, i will can access my template smthing like this :
data['template'], and other data['params']..
Now i'm using TeplateResponse, but this giv
Hello. I want to put additional data with my rendered template to the
client in Jquery.ajax() method. How can i do that? Now i'm using
TemplateResponse(), but with that method i get only my rendered temlate..
--
You received this message because you are subscribed to the Google Groups
"Django
Hi folks,
I'm trying to use the django-serverpush to generate a trappable (by
javascript side) event in push from server. But when I try the example
included in the package diango-push that I got from github (the example is
counter) it give me backe an error 405 method not allowed. I use Django
Hi friends,
I want to create a form so that the tables related to the form accepts
the multiple values by adding rows in the form, just like in gmail
attachments, which uses add new button for a new attachment. I tried
many methods but does not got the fruitful result. Like by using
javascript for
Hi! I'm new to python and django(well, and web dev too).
I'm using python 2.7 and django 1.4
I went through the tutorial and then got issue with files managing.
I have model like this:
class Car(models.Model):
#some fields
photo = models.ImageField(upload_to='cars')
and media url/root con
Hi,
althought I love django, I don't like what it does with ForeignKey in
ModelForms - I don't find HTML's select widget suitable for selecting
when there are dozens or even hundreds related records to select from.
In the form template I'm rendering the field as_hidden, and there's a
script which
On Thu, Nov 15, 2012 at 12:47 AM, cingusoft wrote:
> Hi All
>
> i have a middleware that override the response.template_name variable
>
> class MyMiddleware(object):
>
> def process_template_response(self,request, response):
> response.template_name = ("%s/%s"%("admin",request.template
No one have experimented this problem?
El jueves, 15 de noviembre de 2012 01:47:31 UTC+1, cingusoft escribió:
>
> Hi All
>
> i have a middleware that override the response.template_name variable
>
> class MyMiddleware(object):
>
> def process_template_response(self,request, response):
>
On Thu, Nov 15, 2012 at 9:02 AM, Nebros wrote:
> good morning.
> i have an odbc connect to a mssql db... it works and it looks like this:
> views---
> def kundendaten(request):
> cnxn = pyodbc.connect('DRIVER={SQL
> Server};SERVER=MAURITIUS;DATABASE=baan5c;UID=*
Are there not more intput? pls help me, I do not go any further...!
Am Mittwoch, 14. November 2012 10:50:04 UTC+1 schrieb Nebros:
> Good morning
> I have 2 diffrent views, every one i just needet on one page... till now.
>
> view one-output is the time-
> @csrf_protect
> def
good morning.
i have an odbc connect to a mssql db... it works and it looks like this:
views---
def kundendaten(request):
cnxn = pyodbc.connect('DRIVER={SQL
Server};SERVER=MAURITIUS;DATABASE=baan5c;UID=***;PWD=*')
cursor = cnxn.cursor()
cursor.execut
On Thursday, November 15, 2012 7:25:28 AM UTC+1, rh wrote:
>
> All the tutorials I looked at didn't explain (?P\w+) and it seems
> that the
> tutorials say things like "it's a regular expression, go read python docs
> for more".
> Maybe regexs are consider ugly plumbing stuff unsuitable for tut
41 matches
Mail list logo