Re: Django 1.5 AbstractBaseUser with char primary key not JSON serializable

2013-02-15 Thread Russell Keith-Magee
Hi Kaloian, Ah - you've just fired a neuron in my brain… This is a known issue, and it's not just the permission_required decorator. See ticket #14881. I don't remember the permission_required decorator itself being a problem at that time (not saying it isn't -- just that it wasn't reported as s

need help for my project

2013-02-15 Thread wassim bchini
hello i have a project with Django ; my project is to built a web application to administrate FTP server , i have the engine on python but i haven't information how to render the graphical part (pages,forms,...) ,so i want some information to create the GUI part and to linked with the engine ,

i need help

2013-02-15 Thread wassim bchini
hello ; i have a Project and i'm beginner on Django ; my project is to build web application to administrate FTP server , i have the program of administration on python (engine) and i need some information how to render the web application interface (pages,forms,...) to work with engine , ple

Re: Django 1.5 & Python 3 - porting packages to Python3

2013-02-15 Thread Russell Keith-Magee
Hi Thomas, I'm not aware of any specific efforts to push Python 3 porting. Like Django itself, the ecosystem of Django (and Python) packages is organised by volunteers, so unless volunteers spend the time and effort to port, nothing gets done. You're ahead of the curve in porting all your Django c

Re: Using template fragment caching *inside* a sitewide cache: possible?

2013-02-15 Thread Matt Andrews
I tried using the approach above (template fragment cache everywhere instead of sitewide) and the same problem was there: the inner cache didn't reflect cachebusting changes. I ended up rewriting the code to pull the view fragments via AJAX (which did respect the cachebusting). You can see the

Re: django generate pdf with tables and charts

2013-02-15 Thread Christian Schmitt
Maybe this Issue could help you http://code.google.com/p/wkhtmltopdf/issues/detail?id=948 Also pass --enable javascript and the javascript delay to wkhtmltopdf Am Donnerstag, 14. Februar 2013 15:45:38 UTC+1 schrieb Jaimin Patel: > > Sure. > > I had tried to render PDF with pisa, > > template

Re: The problem with storing relative paths

2013-02-15 Thread Robin Fordham
Hi jonni, How about something like; FORMTEMPLATE_PATH = os.path.join(settings.PROJECT_PATH, 'templates/forms' class Somemodel(models.Model): formtemplate = FilePathField(path='FORMTEMPLATE_PATH', match=".\*.htm[l]") . . On Friday, February 15, 2013 4:14:44 PM UTC, JZ

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread Robin Fordham
> Very cool. > > Please post some notes about whole thign. Not as cool as it may sound, more me playing and trying to learn a bit of digital electronics and improve my coding skills. Video of my setup; http://youtu.be/MFISZPqdbD4 My code (note this is just the python object, django side of it i

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread George Silva
Very cool. Please post some notes about whole thign. On Fri, Feb 15, 2013 at 2:34 PM, Robin Fordham wrote: > Hi guys, > > Thanks for all the pointers! > > George / Bob - That's exactly the pointer I needed 'exec' or 'eval' > > Ryan - Celery is something I have been looking into, but I hadn't

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread Robin Fordham
Hi guys, Thanks for all the pointers! George / Bob - That's exactly the pointer I needed 'exec' or 'eval' Ryan - Celery is something I have been looking into, but I hadn't thought of using it to to put processes in a sandbox; I have a raspberry pi project with an array of LEDs and am building

Need help with GeoDjango distance query.

2013-02-15 Thread mack the finger
http://stackoverflow.com/questions/14889780/distance-query-within-a-certain-distance-based-on-value-in-joined-table Basically I want all objects within a certain distance, AS WELL as within each object's preferred distance. -- You received this message because you are subscribed to the Google G

The problem with storing relative paths

2013-02-15 Thread JZint
Hello! So this is what i wanna do: I have built a model with an admin interface for letting the user create his own site. it has following fields: name = models.CharField(max_length = 50) formtemplate = FilePathField(path='/path/to/project/myforms/templates/forms', match=".\*.htm[l

Re: Designing the email processing system. What path should I follow?

2013-02-15 Thread Tom Evans
On Fri, Feb 15, 2013 at 12:57 PM, Andre Lopes wrote: > Hi all, > > I'm building a Django website. Currently I'm searching for the best > way to design the email processing system. > > The website is a Ads site. I need to send emails in a regular basis to > the users. I'm looking for 20 or 30 e-mai

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread bobhaugen
I found this useful in doing something like that: http://lybniz2.sourceforge.net/safeeval.html http://effbot.org/zone/librarybook-core-eval.htm -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: Bootstrap does not format my templates..

2013-02-15 Thread Ryan Nowakowski
On Thu, Feb 14, 2013 at 06:41:24PM -0800, galva...@hotmail.com wrote: > Hi Guys > > I am learning Django and trying to use Bootstrap, I already download > bootstrap and put it under 'D:\django14\projects\nomina\nom_mex\static', I > have Django 1.4 and use the developer server "runserver". Accord

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread Ryan Nowakowski
Robin, You could store that code as a string in the database. Then to run it you could execute it asynchronously using something like django-celery. Have celery fork off a separate python process for each instance of code execution. By running code asynchronously, badly behaved code(loop forever

Re: Django 1.5 AbstractBaseUser with char primary key not JSON serializable

2013-02-15 Thread Kaloian
Hi Russel I got into another small issue related to the character primary key of the user model. When I try to use the permission_required decorator on that model I got the following error. Exception Value: invalid literal for int() with base 10: '3DDz0Vi7zonFDq9JfByKkeparghaWwupVwbMCbL7JH

Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread Robin Fordham
Hi, I want to be able to allow users to write a custom function/object and save it to the database, so django can call up the function when needed. I am aware of potential issues of users writing functions that could break and/or exploit my app, this for internal use and can write some tests in

Designing the email processing system. What path should I follow?

2013-02-15 Thread Andre Lopes
Hi all, I'm building a Django website. Currently I'm searching for the best way to design the email processing system. The website is a Ads site. I need to send emails in a regular basis to the users. I'm looking for 20 or 30 e-mails hour for now. In other projects, I've been using a database ta

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-02-15 Thread Andrei
Have you guys found a solution for this? This happens on one of our servers that uses Django CMS and relies on gevent worker. Others using gevent work fine. I am investigating other differences. Any suggestions? Django==1.4.3 django-cms==2.3.1 eventlet==0.9.17 gevent==0.13.7 greenlet==0.4.0 guni

Re: Updated Django by Example tutorials

2013-02-15 Thread Rainy
On Monday, February 11, 2013 11:24:57 PM UTC-5, Rainy wrote: > > Hi, I've started updating Django by Example tutorials for django version > 1.5 and using class-based views. > I have posted 3 tutorials so far; 3 more will be added soon: > > http://lightbird.net/dbe2/ > > I hope these will prove t

Django 1.5 & Python 3 - porting packages to Python3

2013-02-15 Thread Thomas Weholt
Hi, As a Norwegian user of Django and python user I've spent countless hours dealing with unicode-problems. As I ported DSE to Python 3 a while ago I also discovered that all my unicode problems were solved if I started using Python 3. Probably old news to most of you, or maybe not even relevant,

Python trademark at risk in Europe: We need your help!

2013-02-15 Thread Jani Tiainen
I'll post this here since this will touch some of us as well: http://pyfound.blogspot.fi/2013/02/python-trademark-at-risk-in-europe-we.html And small quote from beginning of that post: "For anyone who works in a company that has an office in a EU Community member state, we need your help. Th