Re: 20 minute wiki, sortof.

2005-11-18 Thread Simon Willison
write their own ;-) ) I entirely agree. I think we should encourage people to run Django as inefficiently as they like during development, then have all of the preaching about separate servers for static files etc in the deployment documentation. Cheers, Simon

Re: 20 minute wiki, sortof.

2005-11-18 Thread Simon Willison
. Cheers, Simon

Re: Finding numbers of visitors

2005-11-22 Thread Simon Willison
On 22 Nov 2005, at 17:43, Luciano Rodrigues da Silva wrote: I think that is time for the admin have some statistics usage of the applications. Or maybe another app include with the package. Stats is a very obvious application for Middleware. I bet you could do something very, very cool alo

Re: Paginating complex queries

2005-11-23 Thread Simon Willison
On 23 Nov 2005, at 14:59, Afternoon wrote: Is there a way that the request object could be exposed to custom tag code, but not the template itself? The aim with the template system has always been to keep it de- coupled from the request/response stuff, so it can be used as a standalone c

Re: Documentation for Django on TextDrive

2005-11-25 Thread Simon Willison
ia.djangoproject.com/releases/0.90/Django-0.90.tar.gz Cheers, Simon

Re: SQL Injection

2005-12-20 Thread Simon Willison
you want to open up a SQL injection using Django! Cheers, Simon

Re: Django and Multiple Database Support

2005-12-29 Thread Simon Willison
is where input from people like Scott becomes invaluable :) Cheers, Simon

Re: Django and Multiple Database Support

2005-12-30 Thread Simon Willison
is issue: http://code.djangoproject.com/ticket/1142 Cheers, Simon

Re: Web host for Django, what to ask for?

2006-01-01 Thread Simon Willison
heers, Simon

Re: built-in reference

2006-01-04 Thread Simon Willison
odd behaviour it's often worth restarting the server to see if that fixes it. Cheers, Simon

Re: Suitability, Performance and scalability Info

2006-01-05 Thread Simon Willison
icated databases are currently under discussion - contributions of advice (and code) in this area are welcome. Hope that answers your questions, Simon

Re: ANN: "Snakes and Rubies" (Django/Rails meetup) video/audio available

2006-01-05 Thread Simon Willison
On 5 Jan 2006, at 15:17, stinger wrote: You said in the download page "If at all possible, please use BitTorrent! Our servers thank you..." It would be useful if there were torrents for just Adrian's talk, just the Q&A etc. Cheers, Simon

Re: Data from multiple engines/data in one Django app (or project)

2006-01-05 Thread Simon Willison
nt to that ticket so we can be sure to accommodate you. Cheers, Simon

Re: ANN: "Snakes and Rubies" (Django/Rails meetup) video/audio available

2006-01-06 Thread Simon Willison
On 6 Jan 2006, at 16:23, Wilson wrote: It would be useful if there were a gag reel with clips of Simon making vomiting gestures at Adrian from across the room. :) Blast - I thought the cameras missed that :)

Re: Duplicate object

2006-01-12 Thread Simon Willison
- returns an identical object but with id set to None. Cheers, Simon

Re: Bulk delete?

2006-01-18 Thread Simon Willison
lete(DELETE_ALL=True) Calling the delete() method with no parameters could raise an error. Cheers, Simon

Re: Storing News articles - retaining some HTML tags

2006-01-19 Thread Simon Willison
7;t use stripogram though. It will give you nothing more than a false sense of security. I'm going to submit these bugs to the library author. The best Python stripping code I've seen is in Mark Pilgrim's feedparser. You might want to try extracting it. Cheers, Simon

Re: Storing News articles - retaining some HTML tags

2006-01-19 Thread Simon Willison
de in their own data somewhere. Cheers, Simon

Re: Storing News articles - retaining some HTML tags

2006-01-19 Thread Simon Willison
emoves anything that looks like a tag) has had its fair share of problems: http://bugs.php.net/search.php?cmd=display&search_for=strip_tags Cheers, Simon

Re: Locale from URL Middleware

2006-04-05 Thread Simon Willison
aybe with a nice big note at the top of the page, written in their native language of course). Tim Berners-Lee and the W3C may disagree with me on this one, but I'm convinced that using URLs to distinguish between languages is smarter than relying on browser settings alone. Cheers, Simon

Re: Django deployment practices -- do people use setup.py?

2012-04-27 Thread Simon Bächler
s like south or feincms. I still use submodules for packages still in development. Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/

Re: DatabaseError when running unit tests after upgrade to Django 1.3.1

2012-05-02 Thread Simon Bächler
Yes, exactly the same here. Even creating the table in setUp doesn't help. Regards Simon > Did anybody experience something similar? > > Cheers, > Flo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Taggit fragmentation (open letter)

2012-05-28 Thread Simon Bächler
some major issues. Unicode being one of them, whitespace another one. It looks like hcarvalhoalves fork is the most maintained one now. Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the w

Re: Taggit fragmentation

2012-05-29 Thread Simon Bächler
taining. The approach of 'I just fix it myself' is maybe not the right one. If there are that many people working on one project it's probably better to just talk to each other first and coordinate the efforts. Regards Simon Am 29.05.2012 um 01:27 schrieb Russell Keith-Magee: >

Filter by today

2012-06-12 Thread Simon Pickles
e entry in table in other ways). I think my query is wrong. Thanks for any help Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

sending data with HttpResponseRedirect

2012-09-12 Thread Simon Cossar
form data from the previous page so that I can echo some of the submitted data back to them? Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Simon Cossar
thank's, that's just what I was looking for. On Wed, Sep 12, 2012 at 6:35 AM, Jirka Vejrazka wrote: > If you have sessions enabled, you can use the built-in messages > framework (look in contrib) to display a message on the "next" page. > Alternatively, you can save (semi-) arbitrary data in the

Django Troubleshooting

2012-10-18 Thread Sun Simon
https://www.djangoproject.com/download/ I am installing Django for Python on Win XP and came across this problem during installation: tar xzvf Django-1.4.2.tar.gz cd Django-1.4.2 sudo python setup.py install What does "cd" mean? DOes it mean that I have to use command line to type it? --

Re: Django Troubleshooting

2012-10-22 Thread Sun Simon
t specifically as an administrator. > > > On Fri, Oct 19, 2012 at 9:37 AM, Sun Simon > > wrote: > >> https://www.djangoproject.com/download/ >> >> I am installing Django for Python on Win XP and came across this problem >> during installation: >> >

Re: extending the User profile - which way to go?

2011-08-21 Thread Simon Connah
My personal preference is to just create a new model class with a ForeignKey field pointing to the User model with unique=True set. That way you can extend the User object in as many different apps as you want. For instance in a forum app you could have a model tracking the number of posts a use

Re: extending the User profile - which way to go?

2011-08-21 Thread Simon Connah
On 21 Aug 2011, at 19:37, Shawn Milochik wrote: > Using a OneToOne field does the same thing as a FK with unique set to true, > and simplifies queryset syntax. Good point. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Could not connect postgresql database

2011-08-23 Thread Simon Riggs
problem with the socket directory. Permissions? > Here is my pg_hba.conf file  settings: That looks correct. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribe

Re: Django Development environment

2011-08-26 Thread Simon Connah
Mac OS X (soon to switch to Arch Linux). Vim and numerous plugins. SQLite for local database testing during development Virtualenv Mercurial or Git (depends on whether the project is open source or not) Navicat South Selenium Firebug -- You received this message because you are subscribed to the

Historical Djangocon videos available for download in iTunes?

2011-08-27 Thread Simon Connah
Does anyone know of a source for previous Djangocon (both US and EU) videos that allow you to download them in iTunes? So far I've only seen them available on the schedule page of the EU Djangocon site and on Blip.tv. While I can certainly watch them there I prefer to have them on my hard drive

Re: what should be memory size memcached for Django on Ubuntu Os?

2011-08-27 Thread Simon Connah
On 27 Aug 2011, at 12:26, vikas ruhil wrote: > A brief Description of system On i need help for memcached size:- > 1)Cpu :- i7 intel , 16 Gb Ram , Internal SATA Hard-disk :640 Gb , External > Hardisk :-10 Tb, Os :- Ubuntu-32bit > 2)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320

Re: Django Development environment

2011-08-27 Thread Simon Connah
On 27 Aug 2011, at 04:44, Steven Elliott Jr wrote: >> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: >>> Mercurial or Git (depends on whether the project is open source or not) > > Kenneth, > > I think he means whether or not the repository will be public

Re: Django Development environment

2011-08-28 Thread Simon Connah
On 28 Aug 2011, at 04:41, Sam Walters wrote: > Debug client-side: > firebug, yslow, a windows computer with ie7 Rather than using a separate computer with IE 7 I tend to just spin up an Amazon EC2 instance running Windows Server 2003 or Windows Server 2008 for a couple of hours. It makes every

Re: Problem with file upload!

2011-09-04 Thread Simon Connah
On 4 Sep 2011, at 11:25, Ludvig wrote: > added a print statement after self.request.post == "POST" and it came > out, so its a post. You should use: if request.method == 'POST': instead. That is the correct method to determine whether a URL was requested using the POST method. -- You receiv

Re: Trouble expressing a query in the ORM

2011-09-09 Thread Simon Riggs
() opportunity. Not sure I understand the limitation to 10-15 entries. Please explain? Or EXPLAIN? --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google Group

Https with runserver

2011-09-14 Thread Simon Bächler
get the error: (Fehlercode: ssl_error_rx_record_too_long). I need the https connection for local Facebook development. Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Dealing with misc parts of a project

2011-09-22 Thread Simon Connah
hings? Thanks, Simon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more opti

Re: Dealing with misc parts of a project

2011-09-22 Thread Simon Connah
On 22/09/2011 19:50, DrBloodmoney wrote: On Thu, Sep 22, 2011 at 12:30 PM, Micky Hulse wrote: On Thu, Sep 22, 2011 at 8:54 AM, Simon Connah wrote: So do you just tend to create a new misc app to hold all these little bits and pieces or is there a convention for such things? For a few

Re: Newbee question about PostgreSQL

2011-10-17 Thread Simon Riggs
same username as the OS user. This can be modified to allow whatever authentication rule you wish, per the manual. http://developer.postgresql.org/pgdocs/postgres/client-authentication.html or other docs depending upon your db version. --  Simon Riggs   http://www.2ndQuad

Re: Newbee question about PostgreSQL

2011-10-17 Thread Simon Riggs
TAL:  Ident authentication failed for user "george" > > find pg_hba.conf and change 'ident' to 'password' on the lines at the > end of the file Changing the rules in that way would break all existing connections. You should always use md5 rather than pa

Re: Facebook Authentication: Client side vs. Server side

2011-10-21 Thread Simon Bächler
javascript to logout the user from django if the user has unistalled the app on facebook. Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from

Re: Multiple database Router

2011-10-26 Thread Simon Riggs
s are the engines, and yes, you do find engine specialists in car forums because cars are the raison d'etre. If Django was a badly designed car, you wouldn't find such people, that's true. I'm sure the Red Bull team have similar discussions about whose piece of the car is most

Re: natural keys for auth.user and group

2011-10-27 Thread Simon Williams
Unfortunately, according to the Django ticket for this (https://code.djangoproject.com/ticket/13914) it seems that we aren't going to get this functionality built-in any time soon. However, after many hours of inspection in the Django source, I think I have found a solution... 1. In Django 1.3

Re: Django login() fails when using custom Facebook backend

2011-11-05 Thread Simon Bächler
o get the app to work in Safari 5.0 is breaking out of the iframe for the login and then redirecting back in. Regards Simon On 4 Nov., 05:11, kz26 wrote: > I'm currently working on a site (Django 1.3) where all users will be > authenticated through Facebook. To do this,

Open the Django page raw-id widget within TinyMCE

2011-11-14 Thread Simon Bächler
ndred pages in your CMS. Now I'm looking for a way to call Django's raw_id widget from within TinyMCE and get the selected page. Is there a way to do this? Any help would be greatly appreciated. Regards Simon -- You received this message because you are subscribed to the Google Groups

Re: browser detection in django

2011-11-16 Thread Simon Bächler
Hi Do you know modernizr? http://www.modernizr.com/ It's a small Java script that detects browser capabilities and adds them to the 'body' tag. Also check out http://html5boilerplate.com/. There is a browser reset css that tries to get all browsers to a common base. Regards Si

Re: Detect runserver in settings.py?

2011-11-21 Thread Simon Bächler
Hi Jim use: import sys if 'runserver' in sys.argv: Regards Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send em

Re: cannot connect to postgresql database

2011-11-23 Thread Simon Riggs
ld i ask for help to connect django to > postgresql?   i follow the tutorial on djangobook.com We need to know more before anybody can help you, no matter where the problem lies. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training &

Re: UnicodeDecodeError

2012-01-05 Thread Simon Holness
I would hazard a guess that your index.html file is actually not ascii or utf-8 but some other encoding - probably cp1252 0x93 in cp1252 is a "smart quote" ( see http://en.wikipedia.org/wiki/Windows-1252 ) so that would look like it fits with the line quoted below. Open it in an editor that knows

Can anyone give me a suggestion or a recommendation as to how I can access the current user's username in the models.py?

2013-03-14 Thread Simon Chan
Essentially, I'm just trying to make a simple email alert system. If anyone creates, modifies or deletes an entry in the admin back end, I'll receive an email as to which user did what to which model. I already figured out how to detect the 3 user actions mentioned above in the models.py as well

Django problem:AttributeError:Manage isn't accessible via Link instances

2013-03-21 Thread simon xue
Hi,When I read the book named "Learning Website Development With Django",step by step to doing the example,When I read to page 31,"To get an object by ID,type the following:>>>Link.object.get(id=1) " I got this error: "Traceback : File "",line 1,in File"c:\python27\lib\site-packages\django

Navigation Bar

2013-03-27 Thread Simon Shaw
I am Django/Web newbie developer and I am looking for the correct way to add a navigation bar (hopefully the correct term) to my ticketing app such that the options "Admin", "Open New Ticket", "View New Ticket", "Dashboard", "Logout" will always appear at the top of the page and that the page w

Re: Abridged summary of django-users@googlegroups.com - 43 Messages in 19 Topics

2013-04-24 Thread Simon Pickles
-- 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 django-users@googlegroups.com. V

Django setting.py issue

2013-05-19 Thread Sun Simon
*Basic Facts:* OS: Windows Python version: 2.7 Django Version: Instant Django( https://groups.google.com/forum/?fromgroups#!topic/django-users/WLA0ziqbwpg) . I have Django installed using Instant Django and everything is fine until I beging to fiddle with database settings. Here is what my se

Re: Django setting.py issue

2013-05-19 Thread Sun Simon
issue resolved. I have two settings.py files. One is in mysite and the other resides in mysite/mysite. This causes the error. I truncated the first and the issue is gone. On Monday, May 20, 2013 2:14:41 PM UTC+8, Sun Simon wrote: > > *Basic Facts:* > OS: Windows > Python

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Simon Riggs
g a major architectural component in your stack is not a trivial thing. Major changes affect the quality of your deliverables. The most important thing is that a database is a shared resource. If you write all your programs assuming you'll be the only user then it likely won't work very well

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Simon Riggs
te isn't good practice, whether that be Postgres, sqlite or any other component. Whatever you plan to use, please use it from the start. If you can. If there are blockers to doing that for Postgres, please mention it to me, other community members or on the Postgres lists, so we can help. --

Re: data transfer between databases

2013-07-01 Thread Simon Riggs
a m2m relationship. >>> >>> You can use direct access via "foreign tables" the name of the Postgres distributed database feature. http://www.postgresql.org/docs/devel/static/sql-createforeigntable.html -- Simon Riggs http://www.2ndQuadrant.com/ Postgr

Re: data transfer between databases

2013-07-01 Thread Simon Riggs
. >>>>> >>>>> >> You can use direct access via "foreign tables" the name of the Postgres >> distributed database feature. >> http://www.postgresql.org/**docs/devel/static/sql-** >> createforeigntable.html<http://www.postgresql.org/doc

Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
Hi, I think I found a bug and was not sure where to post it other than here. I have created a view defined as follows from django.http import HttpResponse, Http404 from django.views.generic.base import View class TestView(View): def post(self, request, *args, **kwargs): print "*

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
s). > > Likewise, unless you submitted POST data with your request, you should > expect request.POST to be empty. > > _Nik > > On 7/2/2013 2:03 PM, Lucas Simon wrote: > > Hi, > > I think I found a bug and was not sure where to post it other than here. > I hav

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
in/bash', 'SHLVL': '2', 'SSH_AUTH_SOCK': '/run/user/1000/keyring-wmgVNG/ssh', 'TERM': 'xterm-256color', 'TZ': 'America/Denver', 'USER': 'lucas', 'USERNAME': 'lucas', 'WIN

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
urlencoded. You probably want to use > request.body ( > https://docs.djangoproject.com/en/1.5/ref/request-response/#django.http.HttpRequest.body) > > to get at the raw JSON. To get it as a dictionary object in Python, import > the json module, then do: > > >>> data = json.loads(r

Re: Django Dashboard

2013-07-30 Thread Simon Charette
I'd suggest you take a look at django-admin-tools . Le mardi 30 juillet 2013 14:09:00 UTC-4, Martin Marrese a écrit : > > Hi, > > I'm looking for a Django Dashboard to implement on an existing app. A > colleague recommended Dashing (1), bu

Re: Ordering a queryset on a reverse foreign key's attribute

2013-08-01 Thread Simon Charette
>From a quick look I'd also expect `order_by('-children__date')` to work. Can you provide the generated SQL query and some results? Le jeudi 1 août 2013 09:58:25 UTC-4, Daniele Procida a écrit : > > I have an Event model: > > class Event(Model): > parent = models.ForeignKey('self',

Re: Representing infinity or "no limit" in an integer field?

2013-08-20 Thread Simon Riggs
table statistics to determine are NULL values indexed or not. Postgres stats include number of values NULL. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to

Re: Dynamic increasing choices object

2013-08-21 Thread Simon Charette
Not really Django related but you can achieve it by doing the following: WEIGHTS = tuple( (weight, "%dkg" % weight) for weight in range(40, 251) ) Le mercredi 21 août 2013 18:16:59 UTC-4, Gerd Koetje a écrit : > > > How do i automatic increase this from 40 tot 250kg > its a choices field insi

Re: Django ORM: default value from sql query

2013-08-21 Thread Simon Charette
You can achieve this by setting a callable default value [1] on you field: class MyModel(models.Model): count = models.PositiveIntegerField(default=lambda:MyModel.objects.count()) [1] https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.default Le mercredi 21 août

Re: How to handle exceptions in middleware?

2013-08-22 Thread Simon Charette
/middleware/#process_view Le jeudi 22 août 2013 07:56:17 UTC-4, Simon a écrit : > > Hi, > > I've got a webservice built on top Django which requires that every > request (except authentication) include an auth token. > > I've implemented this restriction as Middleware..

Re: Remove validation on a field if its empty

2013-09-05 Thread Simon Charette
Set `required=False`on your `password` field`. If you want to make sure it's only non-mandatory when the user exists override your `UserForm.__init__` this way: class UserForm(forms.ModelForm): password =

Re: Aggregation and count - only counting certain related models? (i.e. adding a filter on the count)

2013-09-24 Thread Simon Charette
Unfortunately the Django ORM's doesn't support conditionnal aggregates . Le mardi 24 septembre 2013 16:50:51 UTC-4, Victor Hooi a écrit : > > Hi, > > I'm trying to use aggregation to count the number of "likes" on an item. > > The likes for an item are

Re: Aggregation and count - only counting certain related models? (i.e. adding a filter on the count)

2013-09-24 Thread Simon Charette
Unfortunately the Django ORM's doesn't support conditionnal aggregates . Le mardi 24 septembre 2013 16:50:51 UTC-4, Victor Hooi a écrit : > > Hi, > > I'm trying to use aggregation to count the number of "likes" on an item. > > The likes for an item are

Re: Restrict access to user-uploaded files to authorized users

2013-09-24 Thread Simon Charette
I'm not aware of any solution except serving from Django if you can't install Apache plugins. If you're really stuck with serving large files from Django I'd recommend you streamthe content of the fi

Re: Aggregation and count - only counting certain related models? (i.e. adding a filter on the count)

2013-09-25 Thread Simon Charette
013 04:41:37 UTC-4, Daniel Roseman a écrit : > > On Tuesday, 24 September 2013 21:58:44 UTC+1, Simon Charette wrote: > >> Unfortunately the Django ORM's doesn't support conditionnal >> aggregates<https://code.djangoproject.com/ticket/11305> >> . >>

Access date a picture was taken

2013-10-19 Thread Simon D
simple way, without having to install anything? Thanks in advance, Simon -- 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...@googl

Re: What's the difference between assertIn and assertContains?

2013-10-28 Thread Simon Charette
>for the implementation details. Simon Le lundi 28 octobre 2013 20:45:17 UTC-4, Pepsodent Cola a écrit : > > # List word > def test_VIEW_Index_WORD_List_word(self): > w = self.create_word() > url = reverse('navi_polls:index') > resp = self.cl

Re: multiple databases and syncdb problem

2013-10-29 Thread Simon Charette
syncdb defaults to syncing the 'default' database when no --database is specified . Try specifying which database to synchronize, with the --database=inserv flag in your case. Le mardi 29 octobre 2013 16:52:

Re: handling field DoesNotExist error within a model class

2013-11-01 Thread Simon Charette
Use the `DateTypeModelClass.DoesNotExist` exception. By the way, make sure you use `select_related()` if you want to use `__unicode__` on those instances or it will results in 1 + N * 6 queries where N = `Channel.objects.count()`. Le vendredi 1 novembre 2013 12:46:21 UTC-4, Rick Shory a écrit :

Re: Django not installed, but clearly installed ??

2013-11-14 Thread Simon Charette
It looks like pip failed to install django. Look into pip.log for more details. Le jeudi 14 novembre 2013 23:28:51 UTC-5, icevermin a écrit : > > Hello, > > I installed Django using pip. It seems as if it was installed just fine. > However... > > cmd --> python --> import django I get an error !

django developer needed

2013-11-17 Thread simon waigo
start dev, hence the post. If interested please drop me a line or post your interest or any questions you have for more details. Thanks for your time. God bless Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: override_settings decoration of non-test class function

2013-11-18 Thread Simon Charette
n and report back here? I guess a 1.6 release note addition and a 1.5 warning wouldn't hurt here. Maybe you could open a ticket suggesting those two documentation addition? Simon Le dimanche 17 novembre 2013 23:04:51 UTC-5, Daniel Smith a écrit : > > I recently ran into a bug in o

Re: Django FCGI process randomly dying

2011-05-18 Thread Simon Connah
On 18 May 2011, at 10:14, Vincent den Boer wrote: > On Monday 16 of May 2011 14:12:45 Alexander Schepanovski wrote: >> Do you log django's stdout/stderr. You could do that with --outlog and >> --outerr options of runfcgi command > > It's running with those options now. And I'm waiting for it to

Re: how to save image in postgreSQL database

2011-05-19 Thread Simon Connah
Don't. Save the filesystem path or some other URI to the image in the database and then use that in your code to get the image itself. Saving images directly in the database is a bad idea. Simon. -- You received this message because you are subscribed to the Google Groups "Django us

Re: how to save image in postgreSQL database

2011-05-19 Thread Simon Connah
On 19 May 2011, at 20:38, ramnivas indani wrote: > ok thanks, is there any online tutorial for that from where i can learn about > URI? This is a good introduction to the subject: http://en.wikipedia.org/wiki/Uniform_Resource_Identifier Simon. -- You received this message because y

Re: Django SEO - feedback

2011-05-22 Thread Simon Connah
g all the meta data fields set? It certainly won't help boost your search ranking and the keywords field is completely ignored by Google. Simon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Simon Connah
sort that one out. Just automate the updating of your packages with Fabric and then once all the packages have been updated, use Fabric to run your shell script (or Python script) to rename the folders as required. Simon. -- You received this message because you are subscribed to the Goog

Re: Is there an HTML editor that's Django-aware

2011-05-24 Thread Simon Connah
ive without it. I just wish it was as good for Objective-C, then I'd use it all the time. Simon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscr

Re: Is there an HTML editor that's Django-aware

2011-05-24 Thread Simon Connah
On 24 May 2011, at 18:49, AJ wrote: > Simon, > > Can you please give details of plugins that you use for Python/Django in > MacVim? > > Thanks, > AJ Sure. I use this plugin collection: https://github.com/carlhuda/janus as well as this extra plugin: http://www.vim.o

Re: UK-based Django Host?

2011-05-25 Thread Simon Connah
any recommendations of hosts they've worked with? > > Thanks! > -Nan I use Linode (US based host) with a VPS in their London datacentre. It's fantastic. The IRC channel is chock full of Python programmers as well :). Simon. -- You received this message because you are sub

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Simon Connah
ou can just use Ctrl+w Ctrl+w to change windows from the main view to the NERDtree window and either i or s depending on whether you want to open the file in a vertical split or a horizontal split. Simon. On 26 May 2011, at 04:32, AJ wrote: > Thanks a lot Simon. This is probably OT: >

Re: Is there an HTML editor that's Django-aware

2011-05-31 Thread Simon Connah
On 31 May 2011, at 00:20, AJ wrote: > If I can give my $0.02, the content can live anywhere, but how about at least > a link to the content within the initial "setting up django environment' > section? > > This way those who are just beginning programming and Django can know what do > they nee

Re: Django Development Environments

2011-06-05 Thread Simon Connah
On 5 Jun 2011, at 16:11, Developr wrote: > Hi! > > I'm currently developing for Django using the following the setup: > > Ubuntu 10.10 > PyCharm > VirtualEnv > Yolk > Pip > > For testing I generally just use the inbuilt dev server that Django > provides. > > For production I'm currently using

Re: How to configure pgAdminIII

2011-07-15 Thread Simon Riggs
e to differentiate it easily in pgAdmin and then supply user/password details for the database. Whoever installed the database server should know that. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this me

Count users joined ordered by month

2011-08-05 Thread Simon Zimmermann
In SQL we can do SELECT MONTH(date_joined), YEAR(date_joined), COUNT(id) as joined_month FROM auth_user GROUP BY MONTH(date_joined), YEAR(date_joined) ORDER BY YEAR(date_joined), MONTH(date_joined) Which yields a table like this MONTH(date_joined) YEAR(date_joined) joined_month 3

Re: Count users joined ordered by month

2011-08-05 Thread Simon Zimmermann
On Aug 5, 9:33 pm, Subhranath Chunder wrote: > Not the exact answer you were looking for, but I was only wondering, if you > have already figured the actual SQL query then why not simply use that > instead. You loose many things by not using the ORM. Currently I use raw() SQL for making these k

Custom queryset on a ModelForm field

2011-01-04 Thread Simon W
Hi, I have a 'project' model class Project(models.Model): title = models.CharField(max_length=100) links = models.ManyToManyField('Link', related_name='link') and a 'link' model class Link(models.Model): label = models.CharField(max_length=50) url = models.URLField(max_length=10

<    1   2   3   4   5   6   7   8   >