Graph in django

2013-08-05 Thread amanjot kaur
I am plotting a graph in django using matplotlib. I am entering all the values manually but I want to fetch the values from database in views.py. -- Amanjot Kaur Blog: kauramanjot35.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users"

Re: got different result from same filter in requests(django1.5)

2013-08-05 Thread Zhouhf
I found, each request will call a new connection to mysql in django1.4 while not in django1.5, in django1.5, connections will be cached and reused by new requests. Thus, there be a problem, the MySQLdb need a explicit connection.commit() before or after every connection.execute() in order to

Testing with legacy data

2013-08-05 Thread Jani Tiainen
Hi, I've legacy database that is rather large (around 300MB) containing lot more than just data (triggers, stored procedures and such). Now how I can test with such a data? Preferably I would like to load data to database, run test, rollback changes and run a next test. But I really wouldn't

Re: PDF generator in Django

2013-08-05 Thread Ovnicraft
On Mon, Aug 5, 2013 at 11:46 PM, Harjot Mann wrote: > On Tue, Aug 6, 2013 at 9:17 AM, Ovnicraft wrote: > > I recommend you use wkhthmltopdf, it is a great library and you can use > any > > JS library to render graphs. > > > How can we use it in

Re: PDF generator in Django

2013-08-05 Thread Harjot Mann
On Tue, Aug 6, 2013 at 9:17 AM, Ovnicraft wrote: > I recommend you use wkhthmltopdf, it is a great library and you can use any > JS library to render graphs. How can we use it in django? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this

Browsing a certain website within another website?

2013-08-05 Thread Somnath
is it possible to browse certain website within another website in django? -- 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

Re: Django for corporate web site

2013-08-05 Thread Mike Dewhirst
On 6/08/2013 2:07pm, sean chen wrote: I need to build a site for a small law firm. I looked at the poweredby pages http://www.djangosites.org/, but I found it shows sites for different purposes and I did not find a good example site for me to spark my thoughts further. I see there exists a

Django for corporate web site

2013-08-05 Thread sean chen
I need to build a site for a small law firm. I looked at the poweredby pages http://www.djangosites.org/, but I found it shows sites for different purposes and I did not find a good example site for me to spark my thoughts further. I see there exists a focus area for e-commerce site at

Best way to make a view for a simple post-comment page?

2013-08-05 Thread Ben Spatafora
Beginner here looking for advice as to the simplest, best-practicey way to do this. Right now I'm just piping a generic, class-based DetailView to a template that displays an instance of a "Post" model and all of its ForeignKey "Comment" model instances. I'd like to keep things as simple,

Re: PDF generator in Django

2013-08-05 Thread Ovnicraft
On Mon, Aug 5, 2013 at 1:48 AM, navnath gadakh wrote: > Which is best tool to generate PDF in python django I recommend you use wkhthmltopdf, it is a great library and you can use any JS library to render graphs. Regards, > -- > You received this message because you

Re: PDF generator in Django

2013-08-05 Thread Nick Apostolakis
Hello there, I have used the report lab library with good results for simple PDF with tabular data On 5 Aug 2013 16:27, "graeme" wrote: > I recently used Latex and it worked fairly well. > > I had to write a little function to escape latex special characters, and > you

Re: Custom model fields not working?

2013-08-05 Thread joe . yuan19
Hey! I'm dealing with a similar issue. Would you be able to tell me if you managed to solve this issue? and if so, how? Thanks! Joe On Tuesday, December 11, 2007 3:42:54 PM UTC-5, oli...@obeattie.com wrote: > > Hey everyone, > > I've asked a little in the Django IRC, but nobody seems to be

Re: [Errno 13] Permission denied: '.cache' - where is the directory I need to change permission

2013-08-05 Thread Mike Doroshenko II
I am curious about this, is there a file called .cache in your project's directory? On 8/3/2013 9:28 AM, Frank He wrote: I am now deploying my django project using apache mod_wsgi, after a lot effort, it is near the end. But now when I run my project directly, I am stuck with a permission

Re: Admin Center is not displaying

2013-08-05 Thread Cole Calhoun
For some reason, my tutorial would switch from the 1.5 version to the 1.7 version without me noticing. Once I did notice, I realized that I had not yet completed the third step. Everything seems to be in working order now. Thank you so much for the help! On Monday, August 5, 2013 4:16:35 AM

Re: Are Web frameworks useful in mobile first world?

2013-08-05 Thread Russell Keith-Magee
On Mon, Aug 5, 2013 at 9:19 PM, zweb wrote: > > Are web frameworks useful in mobile first world of today? > > With apps required to support multiple front ends including Mobile and > Web, is using a web framework like ROR or Django more of a liability. > > Would not a light

Re: Avoiding huge IDs after deleting data

2013-08-05 Thread Javier Guerra Giraldez
On Mon, Aug 5, 2013 at 4:52 PM, Sean Whalen wrote: > How can the models be configured to use bigserial? I know I could convert > the tables myself, but that is not helpful for distributing the app.

Re: Avoiding huge IDs after deleting data

2013-08-05 Thread Drew Ferguson
On Mon, 5 Aug 2013 14:26:00 -0700 (PDT) Sean Whalen wrote: > I have a Django/PostgreSQL application to analyze data from tweets. The > dataset increases by thousands of records with each request. I am using > the database primarily as a relational cache, so I had planned

Re: Avoiding huge IDs after deleting data

2013-08-05 Thread Sean Whalen
How can the models be configured to use bigserial? I know I could convert the tables myself, but that is not helpful for distributing the app. It looks like someone requested that feature three years ago. https://code.djangoproject.com/ticket/14286 On Mon, Aug 5, 2013 at 5:36 PM, Javier Guerra

Re: how get user session name in models django??

2013-08-05 Thread Bill Freeman
By session name, I presume that you mean the name of the user whose request caused you to call a model method. If that is correct, then you can't unless the view logic has passed the request object (or equivalent, such as the username) to the model method in question. (There are various schemes

Re: Avoiding huge IDs after deleting data

2013-08-05 Thread Javier Guerra Giraldez
On Mon, Aug 5, 2013 at 4:26 PM, Sean Whalen wrote: > However, because the Django ORM uses the SERIAL data type to store the IDs > in the DB; the IDs get larger, even when all existing records have been > deleted. Eventually, I will run out of key space. What can I do to make

Avoiding huge IDs after deleting data

2013-08-05 Thread Sean Whalen
I have a Django/PostgreSQL application to analyze data from tweets. The dataset increases by thousands of records with each request. I am using the database primarily as a relational cache, so I had planned to delete all records every 24 hours to permit new requests, without needlessly

Update to the list of images

2013-08-05 Thread Hélio Miranda
Hi My problem is this, I have a field that is a list of ids of the images stored in a register. The issue is that I want to insert an image, and then later want to add another image over it erases the list and put there just the id of this image saved now, and I wanted to update the list,

how get user session name in models django??

2013-08-05 Thread raul salinas
Hi guys how get user session name in models django?? i tried: from django.contrib.auth.models import User class myclass (models.Model): def myuser (): user = User.objects.get() return user establec = models.CharField(max_length=200,default=myuser) but that would be wrong ...any idea? --

Re: Are Web frameworks useful in mobile first world?

2013-08-05 Thread Alex Mandel
On 08/05/2013 06:19 AM, zweb wrote: > > Are web frameworks useful in mobile first world of today? > > With apps required to support multiple front ends including Mobile and Web, > is using a web framework like ROR or Django more of a liability. > > Would not a light weight rest framework be

Re: How to store position of current/active navigation entry

2013-08-05 Thread Bill Freeman
On Sun, Aug 4, 2013 at 6:39 AM, DJ-Tom wrote: > Hi, > > I don't think I know how to actually do what you are suggesting. > > Lets say I have three menu options with the following URLS: > > "One" - /one/show > "Two" - /two/show > "Three" - /three/show > > Currently I have

Oracle reconnection

2013-08-05 Thread Jerome Cordonnier
Hi, I am currently working on an custom python application, and I am using Django (v1.5.1) as backend module to handle my database connection. This application basically use 3 differents thread, that all access to the database thanks to Django, and if everything work fine with Mysql, I have

Re: Admin Center is not displaying

2013-08-05 Thread Keith Edmiston
I experienced similar troubles just last week. The remedy for me was to delete all cookies and cache in my Firefox (on a PC). Then it worked again. Hope that helps...Keith On Saturday, August 3, 2013 10:57:33 PM UTC-5, Cole Calhoun wrote: > > I am running Python 2.7.4 and Django 1.5.1 on a

Re: Bring real data tables with FK

2013-08-05 Thread Giulio Calacoci
Good. well if you use to serialize Models often your solution is the best and probably the cleaner one :) Nice work :) Regards. Giulio Il 05/08/2013 16:28, Mário Idival ha scritto: thanks for answering my question... But i find an way better for this. I create an gist explaining how to

Re: Bring real data tables with FK

2013-08-05 Thread Mário Idival
thanks for answering my question... But i find an way better for this. I create an gist explaining how to do : https://gist.github.com/marioidival/6156074 Thanks! Mário Idival *Twitter *: *@marioigd* *Facebook*: *mario.idival* *User Linux : **#554446* Skype*: marioidival* *Blog:

Re: Bring real data tables with FK

2013-08-05 Thread Giulio Calacoci
Hi, How do you fill the JSON? You use the Document class as Main entity ? Because if you have a Document entity, simply use the internal reference to the related object. example: Assuming that you are filling a Map and then use the map for a quick JSON transform. { 'Document id':

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-05 Thread gilberto dos santos alves
at beginning of each of your python file put this directive for declare that your files are using this encode. review what text editor you are using and when you save your files verify that is using unicode utf-8. many times this occurs when use accent chars like (õ, é, etc) like in portuguese

Re: implement gmail type address adding functionality in django

2013-08-05 Thread Fred Stluka
Roopa, The word to search is "autocomplete". Check out: http://api.jqueryui.com/autocomplete/ It is a JavaScript widget. We use it with Django. It runs in our Web page, and does an Ajax call to our Django code, which pulls the list of completions from our DB. --Fred

Re: PDF generator in Django

2013-08-05 Thread graeme
I recently used Latex and it worked fairly well. I had to write a little function to escape latex special characters, and you have to be a bit careful with some characters when mixing Latex and Django templates. It would not be easy if you needed to insert formatted text into the template,

Are Web frameworks useful in mobile first world?

2013-08-05 Thread zweb
Are web frameworks useful in mobile first world of today? With apps required to support multiple front ends including Mobile and Web, is using a web framework like ROR or Django more of a liability. Would not a light weight rest framework be better? ( Note: I really like Django. It is an

Re: How to check if DEBUG is True in template?

2013-08-05 Thread Drew Ferguson
On Mon, 5 Aug 2013 03:41:49 -0700 (PDT) cui ye wrote: > As title. > http://stackoverflow.com/questions/433162/can-i-access-constants-in-settings-py-from-templates-in-django Gives has an extensive answer with several alternatives -- Drew Ferguson -- You received this

Bring real data tables with FK

2013-08-05 Thread Mário Idival
Good morning, I have this situation: I have 3 classes, Document, Layout and Company 1 Document has 1 Layout 1 and Company .. Document class: layout = models.ForeignKey (Layout) company = models.ForeignKey (Company) I have a search page that is being filled by JSON, then the data layout

Re: not able to run applets

2013-08-05 Thread Phil
How are you invoking the applet? Could you show your relevant code (template)? Regards, Phil On Monday, August 5, 2013 5:08:12 AM UTC-3, Kaushik Roy wrote: > > hello everyone, > > i am a new user of django and i am doing a small project for my course. i > can show static content like images,

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-05 Thread Phil
Without knowing more what you are doing, it is hard to help. But it seems like you are trying to decode as utf-8 something encoded differently. Please provide more information about what you are doing with Django. Regards, Phil On Sunday, August 4, 2013 3:38:11 PM UTC-3, Anton Yermolenko

Re: How to check if DEBUG is True in template?

2013-08-05 Thread Nigel Legg
It i in settings.py, not in template. Regards, Nigel Legg 07914 740972 http://www.trevanianlegg.co.uk http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 5 August 2013 11:41, cui ye wrote: > As title. > > -- > You received this message because you are

Re: implement gmail type address adding functionality in django

2013-08-05 Thread Amit Yadav
I think what you are looking for is named as AUTOCOMPLETE. You can search jquery-ui autocomplete On Monday, August 5, 2013 3:42:05 PM UTC+5:30, roopas...@gmail.com wrote: > > Hi, > > What is the name of that technology i want to search in google. > > Cheers! > > > On Monday, August 5, 2013

How to check if DEBUG is True in template?

2013-08-05 Thread cui ye
As title. -- 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

got different result from same filter in requests(django1.5)

2013-08-05 Thread Zhouhf
recently I ran into a problem whitch doubt me a lot, I did some UPDATE in MySQL: UPDATE tablename SET content="B" where content="A"; and commit, exit shell of MySQL then **with no reload uwsgi** model.objects.filter() in views.py just got different result in requests,like: (request1)

not able to run applets

2013-08-05 Thread Kaushik Roy
hello everyone, i am a new user of django and i am doing a small project for my course. i can show static content like images, css and scripts, but my applets are not running at all. i have a simple hello world applet and its not showing. could anyone throw some light on this? its important

Re: Admin Center is not displaying

2013-08-05 Thread Phil
There are 3 steps in the documentation. You seem to have done the first 2, but what about your mysite/urls.py file? Did you uncomment those lines: # Uncomment the next two lines to enable the admin:*from django.contrib import admin**admin.autodiscover()* Regards, Phil On Sunday, August 4,

Re: PDF generator in Django

2013-08-05 Thread Oivvio Polite
On Sun, Aug 04, 2013 at 11:48:40PM -0700, navnath gadakh wrote: > Which is best tool to generate PDF in python django > I've been using wkhtmltopdf as well. It's very easy to use. Results are ok, but not stellar. Sometimes the font kerning feels a bit of. I use it to generate PDF invoices and

Re: implement gmail type address adding functionality in django

2013-08-05 Thread roopasingh250
Hi, What is the name of that technology i want to search in google. Cheers! On Monday, August 5, 2013 3:29:21 PM UTC+5:30, JirkaV wrote: > > (not on a PC now) > > You're looking for quite common functionality - search you favourite > search engine for combination of Django, Ajax and

Re: Using standard Django admin User forms for Custom User model?

2013-08-05 Thread cubells
S , Vicent Cubells, Tel: 659 06 36 1w4. - Reply message - From: "Victor Hooi" To: Subject: Using standard Django admin User forms for Custom User model? Date: dl., ag. 5, 2013 11:21 Hi, I got it working at a basic level by just

Re: implement gmail type address adding functionality in django

2013-08-05 Thread jirka . vejrazka
(not on a PC now) You're looking for quite common functionality - search you favourite search engine for combination of Django, Ajax and "typeahead" HTH Jirka -Original Message- From: roopasingh...@gmail.com Sender: django-users@googlegroups.com Date: Mon, 5 Aug 2013 00:50:06

Re: Using standard Django admin User forms for Custom User model?

2013-08-05 Thread Victor Hooi
Hi, I got it working at a basic level by just registering against UserAdmin. from django.contrib.auth.admin import UserAdmin > admin.site.register(Customer, UserAdmin) For custom fields, I just needed to add them to fieldsets. However, even though I could view/edit users, adding new Users

Re: Problem with static in Django 1.5 virtualenv

2013-08-05 Thread Tom Evans
On Fri, Aug 2, 2013 at 9:55 PM, Jairo Alonso Velásquez wrote: > Problem is due to a bug on Django or Python, You should to set DEBUG = True > in settings.py And problem gone. > > > https://bugzilla.redhat.com/show_bug.cgi?id=962223 > > Hope this helps others. No, when

Re: Save url containing special characters into mysql database using cursor object

2013-08-05 Thread Tom Evans
On Sat, Aug 3, 2013 at 8:04 PM, fanchyna wrote: > > > > I am about to save the url below to my mysql database (innodb) using the > cursor object: > > >

ANNOUNCE: importd 0.2.0 released

2013-08-05 Thread Amit Upadhyay
Hello everyone, I am pleased to announce I have released 0.2.0 of importd. Documentation: http://pythonhosted.org/importd/. ChangeLog : - BACKWARD INCOMPATIBLE: remove atexit magic, d.main() is the replacement - gunicorn

implement gmail type address adding functionality in django

2013-08-05 Thread roopasingh250
I want to implement the functionality available for adding email address in gmail in my application. In gmail,in compose mail if we type the 1st character of the email address,it will show the list of suggested email address.The same concept,i want to implement in django for contact name.The

Re: PDF generator in Django

2013-08-05 Thread Sanjay Bhangar
On Mon, Aug 5, 2013 at 12:27 PM, Nigel Legg wrote: > I'm currently looking at ReportLab following > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ - but open to > suggestions. > > i have used wkhtmltopdf for this .. not a django / python tool per se, but I

Re: PDF generator in Django

2013-08-05 Thread Nigel Legg
I'm currently looking at ReportLab following https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ - but open to suggestions. Regards, Nigel Legg 07914 740972 http://www.trevanianlegg.co.uk http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 5 August 2013 07:48, navnath

PDF generator in Django

2013-08-05 Thread navnath gadakh
Which is best tool to generate PDF in python django -- 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

Re: Admin Center is not displaying

2013-08-05 Thread Cole Calhoun
Thank you for the support. However, I tried that already and still nothing showed up. Not sure what I'm missing. -- 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

Re: Admin Center is not displaying

2013-08-05 Thread Cole Calhoun
Thank you for the support. However, I tried that already and still nothing showed up. Not sure what I'm missing. On Sunday, August 4, 2013 12:54:07 PM UTC-7, gilberto dos santos alves wrote: > > see your mysite/settings.py for 'django.contrib.admin' (you must clear # > comment) now in 1.6x