Re: Is there a place for new Django specialized hosting?

2012-03-25 Thread Mario Gudelj
None of those hosts AT mentioned are cheap (those that actually work) and many of them are either in Beta or don't work. If you can do $10/month hosting for a low traffic site and then charge more once the site starts using a certain amount of bandwidth I think you have a business there. On 23

Re: Tweepy Status Error

2012-03-25 Thread Babatunde Akinyanmi
What is wrong is clear. process_status is not defined or imported so that's why you have that error. I don't know about tweepy but maybe process_status is supposed to be imported from somewhere. On 3/25/12, coded kid wrote: > Hi guys, I been trying to iterate over status,

Re: philosophy behind sites and applications in Django

2012-03-25 Thread Mario Gudelj
The easiest thing to do is to create each site as a separate project. Define a base template for that project inside templates directory and link your css in that template. Extend that template in all your other templates. Same goes for users. Each project/site will have it's own db and its

Re: Creating pdf files

2012-03-25 Thread NENAD CIKIC
I think i will use the pdfdocument wrapper pip install pdfdocument The author Matthias Kestenholz has created a wrapper for reportlib; at first glance it seems easy to use. Acknowledges to another one Matthias:) https://github.com/matthiask/plata/tree/master/plata/reporting On 26 ožu, 03:39,

Re: Creating pdf files

2012-03-25 Thread NENAD CIKIC
Thanks, the install worked. On 26 ožu, 02:37, Matthias Mintert wrote: > This should help with reportlab issues on > windows:http://www.lfd.uci.edu/~gohlke/pythonlibs/#reportlab -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Creating pdf files

2012-03-25 Thread Matthias Mintert
This should help with reportlab issues on windows: http://www.lfd.uci.edu/~gohlke/pythonlibs/#reportlab -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

philosophy behind sites and applications in Django

2012-03-25 Thread Jojo
Hi guys, I'm new in Django (I started with the 1.3 and now I'm playing with the 1.4) and I'd like to understand better the phylosophy behind the concepts of sites and applications. Ok a site can contain multiple applications and an application can live in many sites, that's simple. Now. For

Re: Creating pdf files

2012-03-25 Thread Python_Junkie
I see from your link that there are 2 possible downloads to enable you to install the software that you want. If you are having issues with the windows 2.7 exe, just use the zip file. Then you can install the software by executing the following command after unzipping the file in windows. c>

Re: How to Detect Current Page as Homepage?

2012-03-25 Thread Python_Junkie
You can retrieve the url variable that you are interested in with evaluating this variable request.path Use this link for more details http://www.djangobook.com/en/2.0/chapter07/ This is an example from the above source def current_url_view_good(request): return HttpResponse("Welcome to

How to adjust grid in Django Admin Forms

2012-03-25 Thread traveller3141
I've just created a model in Django and want to use the admin form to enter information for it. The problem I'm having is that my field names are so long that they overlap the edit boxes where their values are to be entered. If one follows the tutorial in the Django website, it's as if the label

Sending data to the server

2012-03-25 Thread drk
Hi, so I have a application that works offline (with localStorage), and now I'm trying to get it to work in a server. I'm having a problem sending the data to server, I'm using jquery: $.ajax({ type: 'POST', url: 'http://mysite.aa/logout/', data: JSON.stringify( stuff ),

Tweepy Status Error

2012-03-25 Thread coded kid
Hi guys, I been trying to iterate over status, but I’m getting this error: Traceback : File “”, line 2, in NameError: name ‘process_status’ is not defined. Below is the codes: from tweepy import Cursor for status in Cursor(api.user_timeline).items(): process_status(status) What I’m I

Adding link to admin page

2012-03-25 Thread Larry Martell
I have a client that has an app built with django. On every page of their app is a link to their admin site. They tell me the admin site is generated entirely by django, and they've never customized it before. On the very first line of the admin page it says: Django administration

Re: Question about threading a view[REPOSTED]

2012-03-25 Thread Arruda
Thanks every one, and yes, I'm heaving problem with the project in production... I'm using fstcgi and nginx, and when it's called that view it just don't run in background, or run once and then it's stops... So I'm thinking of using django-celery... but just have one more question... Javier,

Re: How to Detect Current Page as Homepage?

2012-03-25 Thread easypie
wow. thank you very much! i didn't know the extra string passed in patterns inside a tuple was used in that way too. Does this have to do with get_absolute_url too? This is what I did: {% url satchmo_shop_home as home %} {% if request.path == home %}{% endif %} urlspatterns +=

Re: playing with random number

2012-03-25 Thread Denis Darii
Nikhil please only django related questions here. Write to python-users group for your problem but only after googling it... I'm pretty sure you will find lots and lots of related questions/solutions. Denis. On 25 March 2012 19:07, Nikhil Verma wrote: > Hi all > > I

Re: all(), get(), create(), count(). More info?

2012-03-25 Thread creecode
Hello MF-DOS, If you're just getting started with Django you might want to use the latest release tutorial . Of course you'll also want the latestDjango release. Whatever version you

Re: Creating pdf files

2012-03-25 Thread Python_Junkie
Did you use the windows exe to install or did you use the zip file. The zip file should work with any python installation after unzipping the files, cd into the directory that included the setup.py file. then use the following command line explicitly use python27 cd into the unzipped

playing with random number

2012-03-25 Thread Nikhil Verma
Hi all I have a list say li = [13,2,13,4] Now i want to use random number such that the list modifies into a dictionary like this:- di = {13: 'abc',2:'def',13:'abc',4:'xyz'} Point to be noted is if the list contains the number it should generate the same random number. How can i achieve this

IE9+Django,Don't respond or Socket error!!!

2012-03-25 Thread Aommonly
=== Exception happened during processing of request from ('127.0.0.1', 60076) Traceback (most recent call last): File "C:\Python27\Lib\SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address) File

Re: __unicode__ and return.self

2012-03-25 Thread Jonathan Baker
You're only returning two fields from the __unicode__ method, not the model as a whole. All of the fields are available when importing the model. The __unicode__ method simply affects how a record from a model is displayed within particular areas such as the admin (but not regular template

Creating pdf files

2012-03-25 Thread NENAD CIKIC
Hello! I am novice django user, and now i want to create pdf documents. Following the official docs at https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ it seems the reportlab is suggested to be used. The problem is that the installer does not work for python 2.7.2, for windows. I have

Re: Automatic indexes on foreign keys

2012-03-25 Thread Aryeh Leib Taurog
On Mar 23, 3:56 pm, Javier Guerra Giraldez wrote: > On Fri, Mar 23, 2012 at 4:37 AM, Aryeh Leib Taurog wrote: > > > My understanding is that one usually > > wants an index on the *referenced* field, not the *referencing* > > field. > > it's for the

Re: Keep getting 404 error

2012-03-25 Thread Sergiy Khohlov
try to open http://127.0.0.1:8000/hello 2012/3/25 Sithembewena Lloyd Dube : > Hi Mika, > > Welcome to Django. > > I think the issue is that the URL 'http://127.0.0.1:8000/' merely points to > your local machine's port (8000), whereas you want to browse to >

default setting module undefiend

2012-03-25 Thread Randa Hisham
hey i try to run aproject and i got that error default setting module undefiend -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you are subscribed to the

Re: __unicode__ and return.self

2012-03-25 Thread Masklinn
On 2012-03-25, at 06:27 , spike wrote: > Thanks for the reply. > > Why am I only returning one or two fields from each model? If I define 5 > fields, shouldn't I return all 5? There is no "should" when it comes to __unicode__, you can return whatever you want. But the *purpose* of unicode is to

Re: How to Detect Current Page as Homepage?

2012-03-25 Thread Kev Dwyer
easypie wrote: > I'm trying to check {% if homepage %} then show {% endif %} > > I'm not sure how to go about a test to check the current page if it's my > homepage. Do I need to mess around with context processors? What's the > usual way of doing it? And how would the {% if ... %} look like? >

myproject/wsgi.py vs. myproject.wsgi?

2012-03-25 Thread Micky Hulse
Hello, This is is probably a silly question, but... I just installed a fresh copy ofDjango 1.4 (mod_wsgi 3.3/Python 2.7) on my WebFaction server. In 1.3, the command startproject (IIRC) generated a myproject.wsgi that lived next to myporject folder. In the 1.4 installer, the wsgi file