Re: UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
yes, it works well :) On Fri, Apr 20, 2012 at 10:11 PM, Daniel Sokolowski < daniel.sokolow...@klinsight.com> wrote: > Yes {{STATIC_URL}} - > https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles > > > > Does that help? > *From:* DanYun Liu

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

2012-04-20 Thread Andrew Cutler
On 18 April 2012 23:21, Daniel Sokolowski wrote: > Can you clarify if you approach can handle things that are not installable > through pip? For example I run into an issue with geodjango requirements - > I was not able to get everything installed through PIP and

Re: Tutorial

2012-04-20 Thread k4ml
On Apr 21, 8:59 am, Gerald Klein wrote: > I guess the problem I am having at this point is that the css files for > admin are generated dynamically and I don't know where from as far as what > the path should be that I could map it. I tried setting up the static > mapping but I

Re: Tutorial

2012-04-20 Thread hr6134
Hello, You can create a sym link to folder with static files of django admin in your static folder. And then all will work. As example: I have debian squeeze. Admin static has a path: /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin You must do the next: $ cd

Re: Tutorial

2012-04-20 Thread Gerald Klein
I guess the problem I am having at this point is that the css files for admin are generated dynamically and I don't know where from as far as what the path should be that I could map it. I tried setting up the static mapping but I don't know what to point to as it's root. thanks --jerry On Fri,

Re: Tutorial

2012-04-20 Thread Gerald Klein
Ok thanks it gives me something to start with. thanks --jerry On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa wrote: > On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein wrote: > > Hi, I did the tutorial everything is fine, I wanted to see how it was off >

Re: Tutorial

2012-04-20 Thread Mohd Kamal Bin Mustafa
On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein wrote: > Hi, I did the tutorial everything is fine, I wanted to see how it was off > the dev webserver they give you , so I hooked it up to uWSGI. The views that > I defined are fine but the admin has no formatting just data. Can

Tutorial

2012-04-20 Thread Gerald Klein
Hi, I did the tutorial everything is fine, I wanted to see how it was off the dev webserver they give you , so I hooked it up to uWSGI. The views that I defined are fine but the admin has no formatting just data. Can someone tell me what I missed. thanks in advance --jerry -- Gerald Klein

RE: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Bob Carlson
I am in much the same situation, Michael. How did you go about finding a good consultant? Cheers, Bob Eugene, OR - Tucson, AZ -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Michael A Sent: Friday, April 20, 2012 03:41 To: Django

Re: cannot import name current_datetime

2012-04-20 Thread asherakhet06
Hey guys, I had to re-install Python and Django for it to work. There seemed to have been something wrong with my path/environment settings. Thank you all for the suggestions and tips though. Once again, very much appreciated:) FYI I had python installed in a wrong path in the and that

Django Database Management App

2012-04-20 Thread dumb906
I've just upped my app to a relatively stable release though still beta. Check it out at https://github.com/dumb906/tiote or you can get from pip using the handle "tiote". It supports Database CRUD applications. If you ever knew Sqlbuddy and needed some sort of variant for your awesome django

Re: Django Caching with Redis

2012-04-20 Thread Shawn Milochik
For what it's worth, Redis itself allows you to set expiration at the millisecond level. That won't help you with Django's own caching, but if you need to write something custom using the Redis Python module then you can. -- You received this message because you are subscribed to the Google

Django Caching with Redis

2012-04-20 Thread M Oklah
Hi, I'm building a high traffic intensive application that involves the browser making an AJAX request to the server every second and is expecting the server to return JSON. At any given second the server responds with the same JSON back to each browser (regardless of which user logged in).

Re: python list in javascript

2012-04-20 Thread Daniel Sokolowski
see http://docs.python.org/library/json.html So you output it in JSON format into a JS variable and then you can use it that way. From: dummyman dummyman Sent: Friday, April 20, 2012 12:38 PM To: django-users@googlegroups.com Cc: Philip Mountifield Subject: Re: python list in javascript no

Re: python list in javascript

2012-04-20 Thread dummyman dummyman
no tats nt the error i ve initialised it as a global variable. I need a suitable way to echo variable which is a dictionary in views.py to a javascript list in django template On Fri, Apr 20, 2012 at 7:39 PM, Philip Mountifield wrote: > "title" is never defined in that

Re: Macs are great for Django development!

2012-04-20 Thread John DeRosa
On Apr 20, 2012, at 8:39 AM, creecode wrote: > Hello Houman, > > On Friday, April 20, 2012 5:58:34 AM UTC-7, Houmie wrote: > > As I am not familiar with Mac, is it true that a let say a Mac Mini is > powerful enough to run Python, Eclipse/PyDev and Django like its done > in Ubuntu without

Re: cannot add User to database

2012-04-20 Thread creecode
Hello Mai, Could you post the actual error you are getting or describe the problem you are having more fully? Posting a bunch of code doesn't help much unless there is more context to work with. Toodle-l.. creecode -- You received this message because you are subscribed

looking for help to make build for django web application

2012-04-20 Thread pritesh modi
Hello Guys is there any one had use the Distutils for Distributing Python Modules,I am looking for make build or setuptools for django application? I am looking for suggestions ? thanks -- You received this message because you are subscribed to the Google Groups "Django users"

Re: urls with/without implicit views import

2012-04-20 Thread Tom Evans
2012/4/20 Alexey Luchko : > Hi! > > I wonder what are pros and cons of explicit import views in urls.py. > There are at least 2 ways of defining urlpatterns. > * explicit import > from . import views > urlspatterns = patterns('', >  ('а/', views.a), > ) > > * lazy import >

Re: Macs are great for Django development!

2012-04-20 Thread creecode
Hello Houman, On Friday, April 20, 2012 5:58:34 AM UTC-7, Houmie wrote: > As I am not familiar with Mac, is it true that a let say a Mac Mini is > powerful enough to run Python, Eclipse/PyDev and Django like its done > in Ubuntu without any problem? Macs are great for Django development!

Re: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Ejah
Looking at some estimates I wonder if they are fair. F.e. lost password is part of django-registration, but it might be you want something else. Anybody some more feedback? Hth Ernst On 20 apr, 16:45, Joel Goldstick wrote: > On Fri, Apr 20, 2012 at 10:31 AM, Daniel

urls with/without implicit views import

2012-04-20 Thread Alexey Luchko
Hi! I wonder what are pros and cons of explicit import views in urls.py. There are at least 2 ways of defining urlpatterns. * explicit import from . import views urlspatterns = patterns('', ('а/', views.a), ) * lazy import urlspatterns = patterns('path.to.app.views', ('a/', 'a'), ) The

Re: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Joel Goldstick
On Fri, Apr 20, 2012 at 10:31 AM, Daniel Sokolowski wrote: > Welcome to Django, just a comment  that you quoted might be overly > optimistic. In my experience simple semi static sites are easy to nail > within the time frame but as complexity rises code hours can

Re: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Daniel Sokolowski
Welcome to Django, just a comment that you quoted might be overly optimistic. In my experience simple semi static sites are easy to nail within the time frame but as complexity rises code hours can and DO quickly grow. The nature of Django lends itself to tweaking/improving so do not be

Re: UrlConf problem when capture value from url

2012-04-20 Thread Daniel Sokolowski
Yes {{STATIC_URL}} - https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles Does that help? From: DanYun Liu Sent: Friday, April 20, 2012 8:57 AM To: django-users@googlegroups.com Subject: UrlConf problem when capture value from url When I use url pattern

Re: python list in javascript

2012-04-20 Thread Philip Mountifield
"title" is never defined in that code snippet so it would be None. Did you mean "key"? The syntax looks wrong too for assigning to someobject. On 20/04/2012 13:53, dummyman dummyman wrote: Hi, I have a python dictionary which i want to add to the javascript object on load in django template

Re: ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread chuwy
So did you? Since 1.4 you can specifyyour own hash algorithms by PASSWORD_HASHERS. You may look at your settings.py. On Friday, April 20, 2012 9:07:11 PM UTC+8, Mai wrote: > > View.py > def login(request): >

Re: Hardware requirements for Djando development (Linux vs Mac)

2012-04-20 Thread Brian Schott
Any Intel mac mini should be fine. I do all of my development on a MacBook Pro laptop. Most of the potential Linux dependencies that aren't available from PyPi (RabbitMQ, MYSQL, ...) can be installed using Homebrew: http://mxcl.github.com/homebrew/ Brian Schott bfsch...@gmail.com On Apr

A weird behaviour of imagestore app

2012-04-20 Thread chuwy
Hi, all. I'm trying to install imagestore app in my project. Default models are created succefully, and all other parts working properly. But, it have a feature to extend base (abstract) models and create your own by some complicated mechanism. This is mine

ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread Mai
View.py def login(request): state = "Please log in below..." username = password = '' if request.method=='POST': username = request.POST['username'] password = request.POST['password'] user = authenticate(username=username, password=password) if user is

Hardware requirements for Djando development (Linux vs Mac)

2012-04-20 Thread Houmie
Hi, This might sound like a strange question. I am switching from MVC .NET to Django/Linux environment. It makes most sense to go completely linux (Ubuntu). But there is also the option of leaving PC completely behind and start using a Mac for development. As I am not familiar with Mac, is it

Re: python list in javascript

2012-04-20 Thread Marcin Tustin
You'd have to show us the generated output. In any case, this is more of a javascript question. If you want to put some data into a rendered page, use the json module to create the data in your view, and paste the whole json string using your template. On Fri, Apr 20, 2012 at 13:53, dummyman

UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
When I use url pattern like this "/search/(\s+)","myview" : django will set mydomain/search as the root domain, so the css and js will not request correctly: in my template: the request url for the index.css is: http://mydomain/search/styles/index.css but not: http://mydomain/styles/index.css

python list in javascript

2012-04-20 Thread dummyman dummyman
Hi, I have a python dictionary which i want to add to the javascript object on load in django template i followed this method

Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Tom Evans
On Thu, Apr 19, 2012 at 5:11 PM, Harald Sigh Andertun wrote: > I'm sorry. Actually that was not the solution. It works sometimes now, which > it didn't before. I'll attach a screenshot. > > I'm on mac (OS X Lion). > A bus error occurs due to unaligned memory access, or

Re: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Marcin Tustin
I would suggest that you let the professional take the lead on coding - that means that he should probably assign the bits that you do, and control the technical aspects of the design. Hopefully you have project management experience, and can handle that side, and you should keep track of the

Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Harald Sigh Andertun
Hi Xavier I now use Python 2.7 and reinstalled django-1.4 with pip this time. It solved the problem. :) - Harald Den fredag den 20. april 2012 13.31.19 UTC+2 skrev Xavier Ordoquy: > > Hi, > > I've never faced such issue with Django on OSX. > Do you use or import non pure python apps ? > What

Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Xavier Ordoquy
Hi, I've never faced such issue with Django on OSX. Do you use or import non pure python apps ? What python version do you use ? Stock osx one ? homebrew ? homemade ? Regards, Xavier. Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit : > I'll attach a screenshot. It works for some time,

Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Michael A
Dear Django community, I'm excited to develop my first site in Django and am trying understand the best way to approach things. I don't have a strong coding background, but I'm comfortable with the tutorial, ~3 hours of screencasts, and "Beginning Django E-Commerce" by James McGaw. Designed the

Content type raw_id_fields

2012-04-20 Thread dobrysmak
Hi, i have got a question, been figthing with this pass few days. How to make raw_id_fields in content type model in admin backend? Or how to display formset for picked content type in inline forms? Cheers! -- You received this message because you are subscribed to the Google Groups "Django

Re: Audio Streaming from server

2012-04-20 Thread yati sagade
Hi, You need to be much more specific. If the problem is related to Django, someone will help you out. But if it is help with Icecast2 you're looking for, you should probably try their mailing lists/forums/IRC channel. Regards On Fri, Apr 20, 2012 at 12:15 PM, atul khairnar

Audio Streaming from server

2012-04-20 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