Audio Streaming from server

2012-04-19 Thread atul khairnar
Hi, I am writing an Internet Radio App. But when i start the app from the localhost, it does not stream the audio. Streaming just stops. I tried to use Icecast2 media streaming server, even it is not working. Or may be I am not using it properly. SO I wanted to ask how to stream audio from server t

Re: PostgreSQL Socket 5432 Error

2012-04-19 Thread Jeff Heard
The other possibility is that you need to build psycopg2 from scratch and set the pg_config option in setup.cfg. I have to do this with the brew build of pg because the socket is elsewhere On Apr 19, 2012, at 7:32 PM, Russell Keith-Magee wrote: > On Friday, 20 April 2012 at 6:04 AM, Zach wr

Re: PostgreSQL Socket 5432 Error

2012-04-19 Thread Russell Keith-Magee
On Friday, 20 April 2012 at 6:04 AM, Zach wrote: > Hi I am trying to setup a PostgreSQL database for Heroku. I am running > into trouble. > > I installed PostgreSQL(9.0) from EnterpriseDB on OS X 10.6. However, > when I do a simple > > $ psql -U postgres > > I get this error message. > > psql:

PostgreSQL Socket 5432 Error

2012-04-19 Thread Zach
Hi I am trying to setup a PostgreSQL database for Heroku. I am running into trouble. I installed PostgreSQL(9.0) from EnterpriseDB on OS X 10.6. However, when I do a simple $ psql -U postgres I get this error message. psql: could not connect to server: No such file or directory I

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread David Markey
Could have been an abi change between python and a new library installed with one of the OSX upgrades. On 19 April 2012 18:33, Harald Sigh Andertun wrote: > The syntax error was not the only problem. It helped a bit, but I still > got bus errors. > > I installed Python 2.7 and reinstalled Djang

Re: external css and javascript files

2012-04-19 Thread dummyman dummyman
hi,, Thank u guys . I ve fixed the static web page problem in django :) On Tue, Apr 17, 2012 at 10:40 PM, dummyman dummyman wrote: > thank u will try and will get back if i have further doubts > > On Tue, Apr 17, 2012 at 10:36 PM, Joel Goldstick > wrote: > >> On Tue, Apr 17, 2012 at 12:50 PM, du

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
The syntax error was not the only problem. It helped a bit, but I still got bus errors. I installed Python 2.7 and reinstalled Django-1.4 using pip insted of django's own setup.py install I don't know if I've been wiser, but at least it seems to work now :-) Den torsdag den 19. april 2012 17.

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Nikolas Stevenson-Molnar
Yes, that is very strange. Things like that should cause SyntaxErrors, and if that was the only/last URL, you shouldn't even /need/ a comma there. Whenever I've had bus errors, it usually ends up being a threading problem, or a problem with a C extension. _Nik On 4/19/2012 8:59 AM, Harald Sigh An

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
I actually just found the problem (by accident) I had forgot a comma in the urls.py urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls))*,* ) ^^ here I am surprised this mistake caused a bus error. Thanks for the help anyway :) -

Re: Word Cap Form Labels

2012-04-19 Thread Lee Hinde
Terrific: .control-label {text-transform: capitalize;} Thanks. On Wed, Apr 18, 2012 at 10:27 PM, Jonathan D. Baker < jonathandavidba...@gmail.com> wrote: > Not sure about django, but this is easy to do in CSS. > > Sent from my iPhone > > On Apr 18, 2012, at 11:21 PM, Lee Hinde wrote: > > The d

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread David Markey
Bus error is usually a very low level problem. Can you give a screen shot? If you are on linux, also post dmesg. On 19 April 2012 16:36, Harald Sigh Andertun wrote: > Hi all > > I am totally new to django. Have followed the intro tutorial until part > 2

Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread Harald Sigh Andertun
Hi all I am totally new to django. Have followed the intro tutorial until part 2, but when I start the development server and tries to access the admin page Python crashes immediately. The console prints "Bus error: 10". I have been googl

reportlab.platypus - frame and background image made with Canvas

2012-04-19 Thread luke lukes
Hi everyone. i'm using Reportlab to output an invoice on a simple Django app. I've already modified the code many times and here's the result: http://dpaste.com/734262/ . Well, this code doesn't work. the issue seems to be on the section from line to line 105 and line 108, on which i got the follow

Re: Force the user to add an instance of some InlineModelAdmin when adding a model

2012-04-19 Thread Daniel Sokolowski
I would suggest overriding the User's ModelForm and adding you validation as per any method here: https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#validating-objects Here is a sample code I use for UserProfile myself: http://dpaste.com/734257/ Hope that helps. From: O

Force the user to add an instance of some InlineModelAdmin when adding a model

2012-04-19 Thread Oscar Mederos
I have a UserAdmin, and I defined a UserProfileInline like this: - from ... from django.contrib.auth.admin import UserAdmin as UserAdmin_ class UserProfileInLine(admin.StackedInline): model = UserProfile max_num = 1 can_delete = False verbose_name = 'Profile' ver

Testing and custom filesystem

2012-04-19 Thread marue
I'm trying to test a form for uploading a userimage, but i'm pretty stuck with a custom filesystem that just doesn't seem to react to overriding settings for testing. The filesystem is really simple and looks like this: social_user_fs = FileSystemStorage(location=settings.SOCIAL_USER_FILES,

Re: cannot import name current_datetime

2012-04-19 Thread Timothy Makobu
The example works as the book describes http://www.djangobook.com/en/1.0/chapter03/ When, in views.py I insert the "datetime.datetime.now()" statement and > "import current_datetime" into my urls.py file, I get the following error > message when I try to call up the webpage via runserver. It see

Re: apache2 privileges

2012-04-19 Thread bruno desthuilliers
On Apr 18, 5:12 pm, "Daniel Sokolowski" wrote: > Hi Bruno, > > Can you expand on that, each of your sites has a user account created? Yes? Depends on the concrete use-case but mostly, yes, each django site will have a dedicated user account. If it's a dedicated hosting for one customer having 2 o

Re: cannot import name current_datetime

2012-04-19 Thread bruno desthuilliers
On Apr 18, 8:47 pm, asherakhet06 wrote: > H all! > > I am fairly new to programming (went over LPTHW) and now going through the > Djangobook on the internet.  Quick beginners question:  In Chapter 3, where > I am looking at a dynamic webpage in the 2nd example Could you please post a link to this

Re: question about celery

2012-04-19 Thread bruno desthuilliers
On Apr 19, 11:05 am, Mike wrote: (...) > Now I want to > move the processing off to a different machine so I'm looking into Celery. >  What I'm not sure about is what are the requirements of the workers.  Do > they need to have the code they are going to run already installed Yes. But you can us

saving a foreign key data table

2012-04-19 Thread Phang Mulianto
HI , I have a template which consist of fields in a master table and a foreign key table. i want user fill the foreign key field data inline in 1 template. and when use submit it, new data of course, i need the data to saved in the master table, then save the foreign table with the foreignkey of

question about celery

2012-04-19 Thread Mike
I've set up a 'ghetto queue' for a django project. The job information is stored in the django DB and I have a script that is run via cron which periodically checks the DB for new jobs and processes them. Now I want to move the processing off to a different machine so I'm looking into Celery.