Re: Django Server impacts path-rules ???

2012-02-04 Thread doniyor
now i created a folder named static and put all my media resource there. the change is here: -- transfer -- contact (das ist app) -- __init__ -- models.py -- tests.py -- views.py -- static -- js -- images -- css -- template -- index.html -- transfer

Re: Using redis in django views

2012-02-04 Thread Ashe
Hello, I just tried with django-redis by using redis as a cache. CACHES = {     'default': {         'BACKEND': 'redis_cache.RedisCache',         'LOCATION': '/tmp/vgbet_redis.sock',         'OPTIONS': {             'DB': 1,             'PASSWORD': None,             'PARSER_CLASS':

Re: Django Server impacts path-rules ???

2012-02-04 Thread doniyor
can you please take a look, here is my settings.py. http://pastebin.com/GSUb2k2e thanks On 5 Feb., 05:58, doniyor wrote: > yes, but here you see: > For local development, if you are using runserver or adding > staticfiles_urlpatterns to your URLconf, you’re done with

Re: Django Server impacts path-rules ???

2012-02-04 Thread doniyor
yes, but here you see: For local development, if you are using runserver or adding staticfiles_urlpatterns to your URLconf, you’re done with the setup – your static files will automatically be served at the default (for newly created projects) STATIC_URL of /static/. On 4 Feb., 19:58, Daniel

Re: django.core.handlers.wsgi not found

2012-02-04 Thread Brett Epps
Sometimes it can help to print sys.path in your WSGI file. (The output should end up in the apache error log.) That should tell you where Python is looking for modules. If the Django install path is not listed, you may need to reinstall Django. How was Django installed originally? Brett On

Using redis in django views

2012-02-04 Thread Ashe
Hello, I'm trying to use redis (with redis-py) directly on some of my critical views to lock them. A simple version of the code could look like that : def test_view(request): --connec = redis.Redis(unix_socket_path='/tmp/vgbet_redis.sock') --if connec.exists('test'): print 'Already locked'

Error setting up Admin

2012-02-04 Thread Abhiram
For some reason i am not able to get the 'admin' page to work. My media root is '/var/www/media' . The error it gave was " '/var/www/media/admin' not found". Then i copied the admin folder from django.contrib to /var/www/media, and then the new error is "Directory Indexes are not allowed here".

django.core.handlers.wsgi not found

2012-02-04 Thread larry.mart...@gmail.com
I am trying to deploy my django app on a newly setup CentOS box. I have successfully deployed it on ubuntu and on a Mac. I get these errors in the apache error log: [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1] mod_wsgi (pid=13616): Target WSGI script

Re: Django Development environment

2012-02-04 Thread CLIFFORD ILKAY
On 02/04/2012 09:48 AM, Vikas Ruhil wrote: If you used Pydev and Textmate , eclipse for Django ! so now You forget them [snip] I used to have a strong bias against PyDev because it was based on Eclipse, something which I used to view as another bloated piece of Java software. I read a blog

Re: auth groups puzzle

2012-02-04 Thread Mike Dewhirst
Dennis and Dan It does look like more work than can be justified at the moment. And, I have difficulty seeing a business case for reinventing django-auth-groups. I really hate the idea of individual permissions but that would be a possible interim workaround until a case can be made. I have

Re: I need a package.

2012-02-04 Thread coded kid
Thanks so much! Any idea on how I can make user_messages/ thread_detail.html work? Just give me an idea on how to go about the template. On Feb 3, 8:17 am, Donald Stufft wrote: > https://github.com/eldarion/user_messages > > > > On Friday, February 3, 2012 at 3:16 AM,

Re: Help Me With omab/django-socialauth

2012-02-04 Thread coded kid
What hypen are you talking about? I've set all the three logins again. And after trying it, I was redirected to '/login-error/' Any suggestion? Thanks. On Feb 4, 2:55 pm, Matías Aguirre wrote: > Don't use /login/twitter/ as your LOGIN_URL, the reason behind LOGIN_URL is

Re: Views in django

2012-02-04 Thread Peter of the Norse
You should look into making a foreign key relationship if there actually is one. That way you can just annotate the the sums. Otherwise you should calculate the sum in the view (NOT the template) and add it to the client. Python allows you to add any value you want to any object. On Feb 3,

Re: VIM as Modern Python/Dajngo IDE

2012-02-04 Thread David Markey
It looks like most of this could be scripted to be made automatic.. On 4 February 2012 19:31, yati sagade wrote: > Seriously dude, I think you should go about making a video of this. > > > On Sun, Feb 5, 2012 at 12:56 AM, Vikas Ruhil wrote: > >> >>

Re: VIM as Modern Python/Dajngo IDE

2012-02-04 Thread yati sagade
Seriously dude, I think you should go about making a video of this. On Sun, Feb 5, 2012 at 12:56 AM, Vikas Ruhil wrote: > > Now working on graphics and how use all this content efficiently ,try to > make graphics those can give basic to advance understanding to the >

Re: VIM as Modern Python/Dajngo IDE

2012-02-04 Thread Vikas Ruhil
Now working on graphics and how use all this content efficiently ,try to make graphics those can give basic to advance understanding to the Python/Django users.Really Good response this post is breaking records for m .Keep Switch there More are coming On Sun, Feb 5, 2012 at 12:29 AM, yati sagade

Re: VIM as Modern Python/Dajngo IDE

2012-02-04 Thread yati sagade
Hi Vikash Appreciate the heads up! Why don't you share this link on G+ and other social media - Even I'll share with my friends - I haven't tried all of it yet, but it looks good. kudos man, Good Job! Keep it up :) Yati Sagade On Sat, Feb 4, 2012 at 5:33 PM, Vikas Ruhil

Re: Django Server impacts path-rules ???

2012-02-04 Thread Daniel Roseman
On Saturday, 4 February 2012 18:48:08 UTC, doniyor wrote: > > Hi everyone, > > i have a small problem which makes me worry. i have a normal html file > with fotos to see in. and i have created a project and started the > server with "manage.py runserver". this is the point! : > > if i open the

Django Server impacts path-rules ???

2012-02-04 Thread doniyor
Hi everyone, i have a small problem which makes me worry. i have a normal html file with fotos to see in. and i have created a project and started the server with "manage.py runserver". this is the point! : if i open the html file just normal from the folder by doubleclick, the browser shows the

Re: problem with localization

2012-02-04 Thread Vittorino Parenti
Dear Denis, in the model I would simply calculate the value and not how it is displayed in admin interface. I thought there was an easy way to format the function result as already done for the fields in the model. Thank you. Vittorino. On 4 Feb, 15:26, Denis Darii wrote:

Re: Is there a simple way to write the site root as a variable clientside

2012-02-04 Thread Denis Darii
I'm not sure I fully understand your questions, but I think you need to know more about the stupend "sites" framework: https://docs.djangoproject.com/en/dev/ref/contrib/sites/ On Sat, Feb 4, 2012 at 5:13 PM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there, > > Is there a simple way to write

Is there a simple way to write the site root as a variable clientside

2012-02-04 Thread Jason
Hi there, Is there a simple way to write the site root as a variable clientside? i.e. if I'm running locally the site root var with appear clientside as http://localhost:1010 however if I deploy the root will be http://www.mysite.com? Cheers, J -- You received this message because you are

Re: Help Me With omab/django-socialauth

2012-02-04 Thread Matías Aguirre
Don't use /login/twitter/ as your LOGIN_URL, the reason behind LOGIN_URL is to provide a user with a page where it can trigger the login process using a login form on links in the case of django-social-auth. But if you define its value to /login/twitter/ that will trigger the login process

Re: Django Development environment

2012-02-04 Thread Vikas Ruhil
If you used Pydev and Textmate , eclipse for Django ! so now You forget them My environment is Ubuntu+vim+Virutalenv+firefox(with vim) +Firebug. I bully on vim , also proof that is better then the Textmate and Pydev that is here

Re: Checklist for appreciating a project from 1.2.7 to 1.4a1

2012-02-04 Thread akaariai
On Feb 4, 9:09 am, Alec Taylor wrote: > Good afternoon, > > I'm bringing the "social-commerce" project up to the latest trunk of > Pinax and Django. > > Is there a checklist of things I'll need to update? > > I've begun updating it, i.e. adding the new database dictionary:

Re: rich text editing

2012-02-04 Thread Denis Darii
Take a look at this app: https://github.com/pydanny/django-wysiwyg On Sat, Feb 4, 2012 at 2:44 PM, yonatan braude wrote: > I want to enable rich text editing to editor on the site. what is the best > way? > thanx > yonatan > > -- > You received this message because you

Re: Help Me With omab/django-socialauth

2012-02-04 Thread coded kid
I've added it, yet no success! I changed my LOGIN_URL to '/login/ twitter/' I'm getting "redirect loop" it means it can't redirect to the url properly! any help with that? On Feb 3, 4:14 pm, Matías Aguirre wrote: > Django-social-auth (note the hyphen ;)) uses LOGIN_URL

Re: problem with localization

2012-02-04 Thread Denis Darii
Vittorino, this is not related to your initial question and you must consider that the format() returns always a string. And why do you use format() in total_no_vat()? I would separate the "total": ... def total_no_vat(self): return self.total_income + self.total_fee def

rich text editing

2012-02-04 Thread yonatan braude
I want to enable rich text editing to editor on the site. what is the best way? thanx yonatan -- 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,

Re: problem with localization

2012-02-04 Thread Vittorino Parenti
Hi, I think this is not the solution. I do another example: MODEL class Procedure(models.Model): total_income = models.DecimalField ( default = 0, max_digits = 11, decimal_places = 4, verbose_name = _("Total Income"), )

Re: auth groups puzzle

2012-02-04 Thread Dan Gentry
I've solved this problem in an app, but not with the built-in permissions system. Instead, I created a DB structure that links users to companies and stores the r/w status for each. On Feb 3, 12:58 am, Mike Dewhirst wrote: > I want to use the built-in auth_groups

VIM as Modern Python/Dajngo IDE

2012-02-04 Thread Vikas Ruhil
I write a Blog about VIM as a Python/Dajngo Modern IDE .There are about 15 Plugin and config of there is on post . I am looking for plugin suggestion for more . Also for newbie and Non-vim user's there is request to checkout the post.Those Guys who ask what IDE should they need use or Which is

Images in html nicht erreichbar durch Django server warum ???

2012-02-04 Thread doniyor
Hallo zusammen, ich habe kleines problem mit pfadangabe. ich habe eine ganz normale einfache index.html mit bilder drin. ich projekt angelegt in django mit Aptana. Also mein problem taucht da auf wenn ich die Seite aufmache. 1) wenn ich die index.html vom Ordner aus direkt mit doppelklick

problem with localization

2012-02-04 Thread Vittorino Parenti
Hello, i've a problem with number format localization. This is an example of my model and admin: MODEL class Procedure(models.Model): total_income = models.DecimalField ( default = 0, max_digits = 11, decimal_places = 4, verbose_name =

Re: Modify only one field

2012-02-04 Thread Ashe
On Feb 3, 11:55 pm, akaariai wrote: > On Feb 4, 9:10 am, Ashe wrote: > > > Is there a better solution to modify only the specified field on a > > table than : > > self.__class__.objects.filter(id=self.id).update(myfield='new awesome > > value') > > ?