Star Rating System In Django

2012-12-30 Thread coded kid
Anyone know about any good package or tutorial or plugin for building a star rating system in django? I tried using dcramer/django rating but It's not working perfectly. If you know of any plugin, package on how to build a star rating system, kindly post it below. Thanks! -- You received this m

Re: Star Rating System In Django

2012-12-30 Thread Alec Taylor
Agon (probably easiest): http://agon-ratings.readthedocs.org/en/latest/usage.html -or- https://github.com/dcramer/django-ratings -or- https://github.com/coleifer/django-simple-ratings On Mon, Dec 31, 2012 at 12:03 AM, coded kid wrote: > Anyone know about any good package or tutorial or plugin

Re: Star Rating System In Django

2012-12-30 Thread coded kid
The developer for agon rating is no more working on it and I guess it won't work nice . Simple ratings is not working out for me. Don't know if there's a JavaScript plugin for rating? On Sunday, 30 December 2012 14:08:10 UTC+1, Alec Taylor wrote: > > Agon (probably easiest): > http://agon-rati

Re: Replicating same model for different deployed application.

2012-12-30 Thread Thiago Luiz Silva
Hello, I guess that the most elegant way is to create a "detachable" app in one principal project and then you install it on the projects that will use that. After the installation you may run the migrations for each project so you don´t have to change files and keep track of changes. We are deve

Re: Replicating same model for different deployed application.

2012-12-30 Thread Amirouche
Héllo Subodh On Sunday, December 30, 2012 3:57:36 AM UTC+1, Subodh Nijsure wrote: > > Hi, > > I have following situation where. My model consist of say table1, table2, > table3. > > I am going to "host" similar data and associated web interface for > multiple customers -( customer1, customer2,

Re: Serve static files in production server

2012-12-30 Thread Amirouche
Héllo Stefano, On Sunday, December 30, 2012 1:27:12 PM UTC+1, Stefano Tranquillini wrote: > > Hi all. > in the appfog ML we were fighting again the possibility to serve static > file in django without using an external server. > So far AF does not provide a setup of the server to split the server

Re: Getting Access to Object in Admin Panel

2012-12-30 Thread Amirouche
On Sunday, December 30, 2012 8:47:05 AM UTC+1, donarb wrote: > > You can code a string that references the __unicode__ method: > > list_display = ('__unicode__', ... > ref: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display -- You received

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Amirouche
On Saturday, December 29, 2012 9:42:50 PM UTC+1, Sam Raker wrote: > > Here's the truncated version I tried to load in case the problem was the > length of the file: > - fields: {location: ST. DENNIS HOTEL, restaurant: Veterans American > Guard, status: complete, > year: 1900} > model: dis

Re: Actions after logout

2012-12-30 Thread r4m
Hallo Ryan, thank you for your advice. What I meant by process is that I've developed a APP user can insert data on 4 forms. If they do not complete them on the fourth form, I want to delete the data after logout our leaving the page. Greetings, Michael On Sat 29 Dec 2012 08:25:26 PM CET, Ryan

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
Thanks for your suggestions. I eliminated the underscores and got rid of the __unicode__ methods entirely, cleaned up my except statement, and changed the order of stuff such that all of each model's fields are defined before any methods. (As for the pk field: The csvs I'm using are actually dumps

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
On Sunday, December 30, 2012 9:54:45 AM UTC-8, Sam Raker wrote: > > Thanks for your suggestions. > > I eliminated the underscores and got rid of the __unicode__ methods > entirely, cleaned up my except statement, and changed the order of stuff > such that all of each model's fields are defined be

Re: Replicating same model for different deployed application.

2012-12-30 Thread Subodh Nijsure
Exactly I was missing the django/web app terminology of multi-tenant app. I tried using https://github.com/phugoid/django-simple-multitenant and it seems to have issues. I will see if I can fix them with my limited knowledge of django. Are there any good multi-tenants frameworks for django out th

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
So I upped the verbosity like you said, and basically all it got me was a bunch of text telling me all the places Django didn't find my fixture before it finally did, and then the same error. Here's the full text of the error: Traceback (most recent call last): File "/home/menusadmin/.pythonbrew

Re: Actions after logout

2012-12-30 Thread Bill Freeman
Michael, How will the server know that they user has logged out? If by clicking a logout link or button, fine, you can capture that and delete the data. But it sounds like you also want to do this when the user "leaves the page". That is much harder. The user's browser does not tell the server

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
On Sunday, December 30, 2012 11:58:46 AM UTC-8, Sam Raker wrote: > > So I upped the verbosity like you said, and basically all it got me was a > bunch of text telling me all the places Django didn't find my fixture > before it finally did, and then the same error. Here's the full text of the >

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
I just tried both of those things, and the YAML data loaded fine, and validate said I had 0 errors. Any other suggestions? I'm really stumped here. On Sun, Dec 30, 2012 at 3:35 PM, donarb wrote: > > > On Sunday, December 30, 2012 11:58:46 AM UTC-8, Sam Raker wrote: >> >> So I upped the verbosit

Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-30 Thread Jeff
Thanks Ryan, That almost worked. The first run of the test script failed with the same error, but if I create the database from the mysql client in the server control panel, the script then asks if you want to delete the database and then continues and runs the tests. Also the test database is

Unable to get an object value using get method in Django

2012-12-30 Thread coded kid
I want to get an object value from a model. After trying the get() method, I've been unable to make it work.And I'm getting the below error. I have a page that display the name of a place to users, so if a user see a place he likes, he will go ahead and fill the form.And in the form, I want to get

Re: Star Rating System In Django

2012-12-30 Thread coded kid
Thanks! Agon works perfectly! On Sunday, 30 December 2012 14:46:24 UTC+1, coded kid wrote: > > The developer for agon rating is no more working on it and I guess it > won't work nice . > > Simple ratings is not working out for me. Don't know if there's a > JavaScript plugin for rating? > > On Su

Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
Hello, I've been having trouble implementing a self-replacing script. I admit that I am terribly confused. I am trying to implement two buttons such that if you click on one, a POST request is sent to the server; the server validates that you indeed went to this webpage and sends back

Re: Unable to get an object value using get method in Django

2012-12-30 Thread Bill Freeman
On Sun, Dec 30, 2012 at 7:11 PM, coded kid wrote: > I want to get an object value from a model. After trying the get() > method, I've been unable to make it work.And I'm getting the below > error. I have a page that display the name of a place to users, so if > a user see a place he likes, he wil

Re: Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
EDITs made to orginal but same issue. On Sunday, December 30, 2012 5:16:17 PM UTC-8, That guy wrote: > >Hello, > > > I've been having trouble implementing a self-replacing script. I admit > that I am terribly confused. > > I am trying to implement two buttons such that if you click on one

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
I tried changing my backend to django-mysql-pymysql (http://pypi.python.org/pypi/django-mysql-pymysql/0.1), and that didn't work either. I'm really at my wits' end. Can anyone help? On Sunday, December 30, 2012 4:21:57 PM UTC-5, Sam Raker wrote: > > I just tried both of those things, and the YAM

Re: Unable to get an object value using get method in Django

2012-12-30 Thread coded kid
Yeah, its a name of a field in my form. I want to the value automatically since I don't know the name of the place the user will choose. I tried adding your correction but i'm getting error. On Dec 31, 2:33 am, Bill Freeman wrote: > On Sun, Dec 30, 2012 at 7:11 PM, coded kid wrote: > > I want t

The method all() in overrided models.Manager doesn't works as expected

2012-12-30 Thread Shuge Lee
I'm writing a simple CMS, it stores page file data on local file system instead of SQL server. I do overrides the model Page's Manager, but it not works as expected, problems - PageManager.all(it calls PageQuerySet?) doesn't works - I can create Page object in Admin, but can't view it o

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
I've also tried changing the charset and collation options in my MySQL tables. Still no good. I'm so stumped. Can anyone help me, please? On Sunday, December 30, 2012 8:54:44 PM UTC-5, Sam Raker wrote: > > I tried changing my backend to django-mysql-pymysql ( > http://pypi.python.org/pypi/django-

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
At this point, I would just skip trying to load the data through Django and write a quick Python script to load the data using INSERT statements or create a bulk data file to load it directly into MySQL. I'm not as familiar with MySQL as I am with Postgres, but Postgres can swallow a whole data