Re: Creating, retrieving, updating and deleting objects.(Queries??) HELP

2013-04-09 Thread Derek
Giorgos You now need to take the time (not worth taking shortcuts!) to understand what Django is, how it works, and what it can do. A good place to start is: https://docs.djangoproject.com/en/dev/intro/ And, although some parts are now a bit dated, I personally found: http://www.djangobook.com/

Re: Deploying: Desktop to server

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 1:09 AM, Tim Johnson wrote: > FYI - I'm new to django, but have been doing web programming since > '96 and python since '03. > > I intend to put together a test site on my desktop and push it to a > remote server. I will be the only user making changes to this site. > > Thus

Re: cleaned_data returning empty in formsets

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 6:09 AM, Nora Olsen wrote: > > The following snippet is returning an empty dictionary for the 2nd form: > > … > > How does initial work with data= in a formset? Without the initial, there > will be cleaned data for the 2nd form. > I see you found your error, but to answer

Re: Accessing list of dictionaries in jQuery

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 1:24 AM, Larry Martell wrote: > I appreciate the suggestion, but using a hidden field sounds very > kludgy. Is there no other way? > Remember that JSON = JavaScript Object Notation - its a way of writing literal JS objects. var data = {{ json_encoded_literal }}; You've

Re: How to rename objects (Urgent)

2013-04-09 Thread Serdar Dalgic
On Tue, Apr 9, 2013 at 1:23 AM, Giorgos Kontogiorgakis wrote: > Hi Serdar! > Hi! > > class Links(models.Model): > interfacein = models.CharField(max_length=20L, db_column='InterfaceIn') > interfaceout = models.CharField(max_length=20L, > db_column='InterfaceOut') > capacity = models.

Re: Suddenly manage.py syncdb fails with 'no such table django_session'

2013-04-09 Thread Serdar Dalgic
On Thu, Apr 4, 2013 at 10:24 PM, Thomas Weholt wrote: > I haven't changed settings.py since my last successful run. I've also > googled the problem (and it seem to pop up once in a while), but none of the > solutions provided solved the problem. I've also made the path to the > databasefile absolu

Re: Suddenly manage.py syncdb fails with 'no such table django_session'

2013-04-09 Thread Thomas Weholt
I've later discovered that, in my case, one of my other packages, which monkey patches my models, most likely is the cause of the problem. Thomas On Tue, Apr 9, 2013 at 12:41 PM, Serdar Dalgic wrote: > On Thu, Apr 4, 2013 at 10:24 PM, Thomas Weholt > wrote: > > I haven't changed settings.py s

Re: How to rename objects (Urgent)

2013-04-09 Thread Giorgos Kontogiorgakis
Hi there again Serdar! i think that you misunderstood me(or i metioned it wrong :( ) I don't want to change the name of my fields(interfacein,interfaceout,capacity,delay) but i want to change the name of "Link objects" that i see on my webinterface.I have a list something like: Link object Lin

How do I display image in admin list?

2013-04-09 Thread frocco
Hello, I have a standard image field in my model, and want to see the images on the admin list page. how do I modify admin.py to do this? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: How do I display image in admin list?

2013-04-09 Thread frocco
Also, some images could be blank/None On Tuesday, April 9, 2013 7:33:43 AM UTC-4, frocco wrote: > > Hello, > > I have a standard image field in my model, and want to see the images on > the admin list page. > > how do I modify admin.py to do this? > > Thanks > > -- You received this message bec

Re: How to rename objects (Urgent)

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 12:23 PM, Giorgos Kontogiorgakis wrote: > Hi there again Serdar! > > i think that you misunderstood me(or i metioned it wrong :( ) > I don't want to change the name of my > fields(interfacein,interfaceout,capacity,delay) but i want to change the > name of "Link objects" that

Re: Accessing list of dictionaries in jQuery

2013-04-09 Thread Larry Martell
On Tue, Apr 9, 2013 at 2:45 AM, Tom Evans wrote: > On Tue, Apr 9, 2013 at 1:24 AM, Larry Martell wrote: >> I appreciate the suggestion, but using a hidden field sounds very >> kludgy. Is there no other way? >> > > Remember that JSON = JavaScript Object Notation - its a way of writing > literal JS

Getting error on first step of tutorial

2013-04-09 Thread millerdl
I'm new to web frameworks and am trying the Django tutorial (https://docs.djangoproject.com/en/1.5/intro/tutorial01/) Environment: Windows 7 64 bit Python 2.7 32 bit Installed Django V1.5.1 with (not using virtualenv): pip install --upgrade django Get 'Successfully installed Django' messa

[ANN] django-sanction 0.3 released

2013-04-09 Thread Demian Brecht
After a small hiatus, I've released django-sanction 0.3. django-sanction is an easy-to-use app wrapping the sanction OAuth 2.0 client library (https://github.com/demianbrecht/sanction). New features: * Upgraded to Django 1.5 (/not/ backwards-compatible) * Python 2/3 compatible https://github.com/

python 3.3/3.4 psycopg2 assertion failure on syncdb

2013-04-09 Thread Demian Brecht
Before I spend too much time digging into this, I'm wondering if anyone else has run into this. I have both 3.3 (from binaries) and 3.4 (from source) installed on OSX 10.8.3 (running postgre 9.2.2.0). I haven't set up any models for my app yet, but upon running syncdb, I'm getting: Assertion faile

Django hosting. Need to run executable for my app

2013-04-09 Thread larsvegas
Can somebody advice me on a provider where I can run my own executable? The program I need to run is written is c++ and can be installed on windows server or linux. A rough estimation of costs? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users

Re: python 3.3/3.4 psycopg2 assertion failure on syncdb

2013-04-09 Thread Demian Brecht
> Assertion failed: (PyBytes_Check(((typecastObject*)cast)->name)), > function _pq_fetch_tuples, file psycopg/pqpath.c, line 1138. > Abort trap: 6 Oops. I had built psycopg2 against 3.4, which is where this error comes up. Built against 3.3, everything works as expected. I need sleep :P On Mon,

Unable to save unicode character data using Django models

2013-04-09 Thread Netavid dotorg
Hi All, I have a Book table in MySQL db. I configured my MySQL db and table to use utf8 character set and the utf8_general_ci collation I created a simple Book class and tried to save unicode data using (a)the django shell (b) the data entry screen created by using ModelAdmin class

Adding manytomany field, like "days of the week".

2013-04-09 Thread Mark London
Hi - I'm a django newbie, so sorry if I'm doing something stupid (I did try to read the documentation. I want to have a model, that has a manytomany field that stores days of the week, selected via a checkbox widget. I read on the web, that I could put something like this in the model. DAYS_O

Re: Unable to save unicode character data using Django models

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 9:54 AM, Netavid dotorg wrote: > Hi All, > > I have a Book table in MySQL db. > I configured my MySQL db and table to use utf8 character set and the > utf8_general_ci collation > I created a simple Book class and tried to save unicode data using (a)the > django shell

Re: Adding manytomany field, like "days of the week".

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 1:38 PM, Mark London wrote: > Hi - I'm a django newbie, so sorry if I'm doing something stupid (I did try > to read the documentation. > > I want to have a model, that has a manytomany field that stores days of the > week, selected via a checkbox widget. I read on the web,

Re: Deploying: Desktop to server

2013-04-09 Thread Brian Schott
Tim, Others are welcome to disagree, but try to avoid the trap of using JSON fixtures to migrate the database. You can get yourself in trouble pretty quickly with foreign key collisions if you are not careful. Use pg_dump or mysqldump instead to backup/move database content. A good strategy

Re: Adding manytomany field, like "days of the week".

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 1:57 PM, Tom Evans wrote: > On Tue, Apr 9, 2013 at 1:38 PM, Mark London wrote: >> Hi - I'm a django newbie, so sorry if I'm doing something stupid (I did try >> to read the documentation. >> >> I want to have a model, that has a manytomany field that stores days of the >> w

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Mike
On Tuesday, April 9, 2013 8:52:41 AM UTC+2, larsvegas wrote: > > Can somebody advice me on a provider where I can run my own executable? > The program I need to run is written is c++ and can be installed on windows > server or linux. A rough estimation of costs? > > Thanks! > Digital Ocean has

{% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi everyone, I have a project based on the latest Django version (1.5.1.) where I created a contact_us application. The project has a urls.py file with some url patterns. The contact_us app implements its own urls.py file (decoupling). In the project's urls.py file (just above the admin site's url

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
I placed the code in those places, I put AUTH_USER_MODEL = 'auth.Users' right after INSTALLED_APPS "CommandError: One or more models did not validate: auth.user: Model has been swapped out for 'auth.Users' which has not been installed or is abstract. admin.logentry: 'user' has a relation wit

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Andrey Kostakov
Try this without quotes: Contact Us On Tue, Apr 9, 2013 at 5:31 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I have a project based on the latest Django version (1.5.1.) where I created > a contact_us application. The project has a urls.py file with some url > patterns. The contact_us ap

Re: Getting an AttributeError while creating a Django project

2013-04-09 Thread Olga Zasenko
Cannot believe it is still the same! As you can see I've created a new virtual environment called env1, activated it, installed django, changed django's directory in my Path... But I'm greatful for your response:) On Monday, April 8, 2013 2:17:43 PM UTC+3, vicherot wrote: > > I see that u use wi

Re: How to rename objects (Urgent)

2013-04-09 Thread Giorgos Kontogiorgakis
Hi there! Thanks a lot guys for all your advice and help!You were right from the begining!I am soo new at Django and python and my supervisor pushed me to do this project so i want some fast solutions and i skipped many important points!Thanks again for your time and help and i'll contact you s

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Andrey, Thanks for the suggestion. I tried that with no success. According to the current documentation, that would be an issue with versions older than 1.5? (where one would use url from future). For some reason, i suspect that the url tag cannot resolve a url for a view in a "plugged-in" app

Re: Why is a username required for a User?

2013-04-09 Thread Vignesh Sunder
Is your new 'Users' class defined in an 'auth' module/app inside your project? I guess the problem here is that you are supposed to refer to the module containing the 'models.py' in which you have defined 'Users' class. For example, if your module/app is 'mysite' and you have defined 'Users' clas

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-09 Thread Andy Dustman
You know, I had another report of this, which seemed completely improbable: https://plus.google.com/u/0/101898908470597791359/posts/AuMJdgEo93k Maybe it's related to a bug in Django 1.5 that was fixed in 1.5.1? https://www.djangoproject.com/weblog/2013/mar/28/django-151/ On Thu, Apr 4, 2013 at 1

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Andrey Kostakov
I am not sure, but you can try following code in your contact_us app's urls.py: urlpatterns = patterns('contact_us.views', url(r'^$', views.contact_us, name='contact_us'), ) On Tue, Apr 9, 2013 at 6:02 PM, Sithembewena Lloyd Dube wrote: > Hi Andrey, > > Thanks for the suggestion. I tried tha

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I have a project based on the latest Django version (1.5.1.) where I created > a contact_us application. The project has a urls.py file with some url > patterns. The contact_us app implements its own urls.py file (de

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
Thank you that was my issue. Now syncdb works I also needed to add a name parameter to create_superuser and create_user and make sure create_super user has the name in the call to self.create_user I see h On Tuesday, 9 April 2013 10:05:33 UTC-4, heartbr...@gmail.com wrote: > > Is your new 'User

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
Except the super user I created with syncdb doesn't have access to anything On Tuesday, 9 April 2013 10:24:19 UTC-4, Cody Scott wrote: > > Thank you that was my issue. Now syncdb works I also needed to add a name > parameter to create_superuser and create_user and make sure create_super > user h

Can someone help me with this error. No ReverseMatch

2013-04-09 Thread frocco
NoReverseMatch: Reverse for 'narrow_category' with arguments '(9L, u'pro contact', u'', u'', u'')' and keyword arguments '{}' not found. url(r'^narrow_category/(\d+)/(\w*)/(\d*)/(\d*)/(\d*)/$', 'catalog.views.narrow_category', name="narrow_category"), url(r'^narrow_category/(\d+)/(\w+)/$', 'ca

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Thanks, Tom. I am not sure how you mean? In the contact_us app, I am not explicitly calling reverse. I only have the following: from django.shortcuts import render, reverse def contact_us(request): return render(request, 'contact_us/contact_us.html') On Tue, Apr 9, 2013 at 4:22 PM, Tom E

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Bill Freeman
A linux VPS, such as from linode.com would certainly allow this (we pay abotu $20/mo for ours). As to shared hosts, it wouldn't hurt to ask at WebFaction. If I were them, I'd want to examine the code and do the compiling, and I'd probably want to charge for that code review (or if it's a standard

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Tom, I see what you meant. In the documentation (tutorial) namespacing is used in the form example. Even with that in place, I am having trouble. I did notice that I am not getting a 404 error instead, because the url being built is dumplicated. Please see the trace below (errant line ibeing #

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Tom, I see what you meant. In the documentation (tutorial) namespacing is used in the form example. Even with that in place, I am having trouble. I did notice that I am not getting a 404 error instead, because the url being built is dumplicated. Please see the trace below (errant line ibeing #

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 3:43 PM, Sithembewena Lloyd Dube wrote: > Thanks, Tom. > > I am not sure how you mean? In the contact_us app, I am not explicitly > calling reverse. I only have the following: > > from django.shortcuts import render, reverse > > def contact_us(request): > return render(r

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube wrote: > Hi Tom, > > I see what you meant. In the documentation (tutorial) namespacing is used in > the form example. Even with that in place, I am having trouble. > > I did notice that I am not getting a 404 error instead, because the url >

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
In models.py in /django/contrib/auth there is a u.is_superuser = True but when I add it just like how is_staff and is_active are added I get the error "FieldError: Local field 'is_superuser' in class 'Users' clashes with field of similar name from base class 'PermissionsMixin' " On Monday,

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Tom, The latter. I did not call reverse explicitly (not yet). I have implemented namespacing as recommended. Contact Us On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans wrote: > On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube > wrote: > > Hi Tom, > > > > I see what you meant. In the docum

Re: Deploying: Desktop to server

2013-04-09 Thread Tim Johnson
* Brian Schott [130409 07:12]: > Others are welcome to disagree, but try to avoid the trap of using > JSON fixtures to migrate the database. You can get yourself in > trouble pretty quickly with foreign key collisions if you are not > careful. Use pg_dump or mysqldump instead to backup/move dat

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
In the docs https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#custom-users-and-django-contrib-admin It says to use with admin you need the following methods is_active, has_perm, has_module_perms So I added them but I don't really understand how to do permissions Here is the code I p

Re: Why is a username required for a User?

2013-04-09 Thread Anderson
You don't have to worry about permissions all these methods come with PermissionsMixin and is_superuser too. https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#auth-custom-user Do not override those methods otherwise all users will return always true. On Tue, Apr 9, 2013 at 9:22 AM,

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi all, I have the correct url, but the dev server seems to be caching my old template, even though I updated it to include namespacing. I have restarted the server and cleared my browser cache. contacts On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube wrote: > Tom, > > The latter. I di

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
New trace below: I am stumped. Request Method: GET Request URL: http://127.0.0.1:8000/contact_us/ Django Version: 1.5.1 Exception Type: NoReverseMatch Exception Value: Reverse for 'contact_us' with arguments '()' and keyword arguments '{}' not found. On Tue, Apr 9, 2013 at 5:34 PM, Sithem

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
If I don't have them and I log in to admin I get "You don't have permission to edit anything." On Tue, Apr 9, 2013 at 11:28 AM, Anderson wrote: > You don't have to worry about permissions all these methods come with > PermissionsMixin and is_superuser too. > > https://docs.djangoproject.com/en/

Re: Why is a username required for a User?

2013-04-09 Thread Anderson
No . inside has_perm before check whether you have permission or not is going to check if you are active and superuser. # Active superusers have all permissions. if self.is_active and self.is_superuser: return True On Tue, Apr 9, 2013 at 9:46 AM, Cody Scott wrote: > If I don't have th

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
OK so how do I access the admin then? On Tue, Apr 9, 2013 at 11:56 AM, Anderson wrote: > No . inside has_perm before check whether you have permission or not is > going to check if you are active and superuser. > > # Active superusers have all permissions. > if self.is_active and self.is_super

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved. The problem was a similar usage of a url template tag without a namespace. All I had to do was check the correct line number in the template. Thanks to all. Time for a walk outside. On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube wrote: > New trace below: I am stumped.

Re: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved. The problem was a similar usage of a url template tag without a namespace - in the same template. All I had to do was check the correct line number in the template. Thanks to all. Time for a walk outside. On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube wrote: > New trac

Re: Adding manytomany field, like "days of the week".

2013-04-09 Thread Mark London
Thanks for the response. I had read about fixtures, but then people were saying that fixtures wasn't the best way to initialize the model, but they didn't give the alternative! Next time, I won't listen to opinions, but will use code that actually works. - Mark -- You received this message

django-sagepay example

2013-04-09 Thread sparky
I want to use django-sagepay. However, it doesn't seem to have any examples or test.py that I can learn from. being a newbie I need docs! Does anyone know of any examples of use? I'm very familiar with sagepay, just n

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Mike
On Tuesday, April 9, 2013 4:48:43 PM UTC+2, ke1g wrote: > > A linux VPS, such as from linode.com would certainly allow this (we pay > abotu $20/mo for ours). > > As to shared hosts, it wouldn't hurt to ask at WebFaction. If I were > them, I'd want to examine the code and do the compiling, and

Re: Why is a username required for a User?

2013-04-09 Thread Cody Scott
Okay Anderson you were right I didn't need those methods. All I needed was user.is_superuser = True after user.is_admin = True Thanks again for the code! On Tuesday, 9 April 2013 11:56:00 UTC-4, Anderson Borges wrote: > > No . inside has_perm before check whether you have permission or not is

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Mike
On Tuesday, April 9, 2013 6:33:08 PM UTC+2, Mike wrote: > > > > On Tuesday, April 9, 2013 4:48:43 PM UTC+2, ke1g wrote: >> >> A linux VPS, such as from linode.com would certainly allow this (we pay >> abotu $20/mo for ours). >> >> As to shared hosts, it wouldn't hurt to ask at WebFaction. If I

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Tom Evans
On Tue, Apr 9, 2013 at 5:38 PM, Mike wrote: > > > On Tuesday, April 9, 2013 6:33:08 PM UTC+2, Mike wrote: >> >> >> >> On Tuesday, April 9, 2013 4:48:43 PM UTC+2, ke1g wrote: >>> >>> A linux VPS, such as from linode.com would certainly allow this (we pay >>> abotu $20/mo for ours). >>> >>> As to sh

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Adam Mesha
On Tue, Apr 9, 2013 at 7:33 PM, Mike wrote: > On Tuesday, April 9, 2013 4:48:43 PM UTC+2, ke1g wrote: > >> A linux VPS, such as from linode.com would certainly allow this (we pay >> abotu $20/mo for ours). >> >> As to shared hosts, it wouldn't hurt to ask at WebFaction. If I were >> them, I'd wa

Re: Using the autocomplete-light app in Django admin?

2013-04-09 Thread james...@gmail.com
Try something like this: 'customer': autocomplete_light.ChoiceWidget('CustomerAutocomplete') http://django-autocomplete-light.readthedocs.org/en/latest/tutorial.html#override-a-default-relation-select-in-modelform-meta-widgets On Thursday, February 14, 2013 6:22:00 PM UTC+1, Derek wrote:

Re: Accessing list of dictionaries in jQuery

2013-04-09 Thread Larry Martell
Thanks! This works perfectly. On Mon, Apr 8, 2013 at 6:01 PM, Nikolas Stevenson-Molnar wrote: > Injecting data into a template can be tricky. I would recommend doing > two things: > > 1) Serialize your data to JSON in your view first using Python's json > module. Something like this: images_

Can't get Save method to work

2013-04-09 Thread Cody Scott
I have a Question Model with a ForeignKey field (answer) and a ManyToManyField (choices) that link to the same model (Choice). When I create a question I create a new Choice object for the answer field but that option does not show up for the choices field. I don't want to have to cancel the cr

Re: [SPAM] Implementing User login expiration

2013-04-09 Thread Sam Solomon
Depending on if the expiration is a temporary thing or if you actually want to permanently deactivate the user, this may be even simpler and database efficient (and is what we use to ban users): class DeactivateUserMiddleware(object): def process_request(self, request): if request.us

Re: Getting an AttributeError while creating a Django project

2013-04-09 Thread Rafael E. Ferrero
maybe you can try re-download django installers and reinstall de last stable version. 2013/4/9 Olga Zasenko > Cannot believe it is still the same! > > As you can see I've created a new virtual environment called env1, > activated it, installed django, changed django's directory in my Path... >

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Josh Cartmell
+1 for webfaction, it shouldn't be a problem to compile and use your own binary with them. On Monday, April 8, 2013 11:52:41 PM UTC-7, larsvegas wrote: > > Can somebody advice me on a provider where I can run my own executable? > The program I need to run is written is c++ and can be installed o

Announcing Django Announce Twitter bot

2013-04-09 Thread Josh Cartmell
I created a Twitter bot that tweets the title and provides links to messages posted in the Django Announce Google Group (Django release announcements for example). If anyone is interested you can see it here: http://twitter.com/djangoannounce Feel free to give me feedback, or point out bugs. --

[django_tables2] Expected table or queryset, not 'str'.

2013-04-09 Thread Tomas Pelka
ValueError at /plyn Expected table or queryset, not 'str'. Request Method:GETRequest URL:http://127.0.0.1:8000/plynDjango Version:1.5Exception Type:ValueErrorException Value: Expected table or queryset, not 'str'. Exception Location:/usr/lib/python2.7/site-packages/django_tables2-0.13.0-py2.

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Avraham Serour
I have a toy account on bluehost, I compiled my own python version on my $home no problem. It is slow to run my django projects, but I compile python packages when pip install wants no problem On Tue, Apr 9, 2013 at 9:57 PM, Josh Cartmell wrote: > +1 for webfaction, it shouldn't be a problem to

Can admin list being filtered be remembered

2013-04-09 Thread frocco
If I set a filter in the admin list, and edit and save a record, the filter is not remembered. Cn this be changed? -- 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: Can admin list being filtered be remembered

2013-04-09 Thread frocco
I found this snippet. http://djangosnippets.org/snippets/2849/ On Tuesday, April 9, 2013 5:41:25 PM UTC-4, frocco wrote: > > If I set a filter in the admin list, and edit and save a record, the > filter is not remembered. > Cn this be changed? > -- You received this message because you are sub

Re: django-sagepay example

2013-04-09 Thread Mario Gudelj
Hey sparky, I hope this helps: Create your checkout form and if the form is valid populate the following dict with the form data: data = { 'VPSProtocol': settings.VPS_PROTOCOL, 'TxType': settings.TXTYPE, 'VendorTxCode': b32encode(uuid.uuid4().bytes

Re: django-sagepay example

2013-04-09 Thread Mario Gudelj
Sent the previous email prematurely. So, here is a working example: Create your checkout form and if the form is valid populate the following dict with the form data: data = { 'VPSProtocol': settings.VPS_PROTOCOL, 'TxType': settings.TXTYPE, 'Vendor

Django 1.5 not disconnecting from database after a request

2013-04-09 Thread Lewis Sobotkiewicz
Hi all, I'm seeing some strange, undocumented behaviour when upgtrading to Django 1.5.1. I notice that it is holding onto MySQL connections after request processing completes, where Django 1.4.5 disconnected after every request. Any idea what could be happening? Thanks! -- You received this