Re: How to manage django settings.py for Github, local, production

2013-03-29 Thread Alexey Kinyov
Hi, Surya! My practice is to have 'settings_template.py' in repository and 'settings.py' ignored, so 'settings.py' looks like: from settings_template import * # and here's confidential settings and other There also may be many 'templates' for settings, like 'settings_dev.py', 'settings_pr

[ANN] 'django-smarter' app for declarative style generic views in Django

2013-03-28 Thread Alexey Kinyov
Hello, everyone! I've released 1.0 beta of the app: https://github.com/05bit/django-smarter It helps with adding generic views. Actually, I've build this app for one of my projects, which is 80% based on generic views, and it seemed very useful for that particular case :) As my project evolved a

Re: Django on Jython - Newbie installation difficulties

2013-03-17 Thread Alexey Kinyov
You are welcome :) I'm just interesting what kind of task and environment do you have? I've never played with Jython and never needed to use it, so it's uncommon for me. Sure. If you need your Python code to interact "directly" (not through network API) with Java code, Jython seems reasonable sol

Re: Django on Jython - Newbie installation difficulties

2013-03-16 Thread Alexey Kinyov
Hi, SeeGull! It seems that Django 1.5 is incompatible with your version of Jython (or with Jython at all, I don't know). I've looked at 'django/utils/version.py' (you can see from traceback - exception raised in this file): https://github.com/django/django/blob/master/django/utils/version.py So,

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-16 Thread Alexey Kinyov
Hi, Derek! First of all, thank you! :) > Looks good ... I think a demo with more items in it would be useful se we > can see how page navigation works. It also seems that there is no record > count when you add a filter (eg. "displaying 5 of 20")? Sure, you're right - actually with large amount

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Alexey Kinyov
You are welcome! :) Alex /// On Thu, Mar 14, 2013 at 12:33 AM, VVilku wrote: > Thanks a lot :) > You're right.I did not notice it. > > Working when add 'atest': > > or > > or > when remove this namespace from project/urls.py. > > regargs > > > > W dniu środa, 13 marca 2013 20:46:41 UTC+1 użytko

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Alexey Kinyov
Hi VVilku! It should work if you remove `namespace='atest'` from 'auth_project/urls.py'. regards, Alex /// On Wed, Mar 13, 2013 at 10:14 PM, VVilku wrote: > No, I dont't. :) > The attachment in the first post it is my attempt to isolate the problem. > (assumption "blog"=="atest") > > > > W dni

Re: FreeBSD+wsgi+django static and media how-to-do

2013-03-13 Thread Alexey Kinyov
Hi dj-konst! Static files in production are generally served by web server - Nginx or Apache or something else. And it's safer to place static files dir outside of your project dir and use 'collectstatic' command to grab static files there. Here are some examples of Nginx config with static files

Re: Asking for opinion about an Agile Web Framework Comparison

2013-03-13 Thread Alexey Kinyov
Hola David! :) I appreciate your attempt and systematic approach :) It might be interesting. I write web-services using Python and Django since 2008, before that I worked for some projects in PHP/WordPress/Drupal (less then 1 year exp.), I've programmed several games in Flash/AS3 (about 3 years e

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
Thank you, Mário! :) Alex /// On Tue, Mar 12, 2013 at 11:23 PM, Alexey Kinyov wrote: > Hi Tomas, > > thank you! :) It's really inspiring :) > > Yes, I looked through all well known admin customization/skin apps - > some of them a really nice. I'm trying to buil

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
> > Anyway, I wish you good luck in future development. > > Cheers, > Tom > > > Dne Tue, 12 Mar 2013 19:58:22 +0400 > Alexey Kinyov napsal(a): > >> Hello everyone! >> >> Today we've released alpha of Brillixy https://github.com/05bit/brillixy. >&

[ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
Hello everyone! Today we've released alpha of Brillixy https://github.com/05bit/brillixy. This is a Django admin skin with some extras. Actually it's an alternative to Grapelli, Admin Tools and other apps that changes standard Django admin look and user experience. It's simple and minimal at the

Re: TestCase Client.login() fails

2012-03-28 Thread Alexey Kinyov
Hello, Reinout! > Yes: You have to call user.save() after creating it. Otherwise the user > object exists, but it isn't saved to the database yet. That' wrong. Documentation says: create_user(username, email=None, password=None) Creates, saves and returns a User. https://docs.djan

Re: TestCase Client.login() fails

2012-03-28 Thread Alexey Kinyov
Hello, Jonathan! I think issue is in the fragment 'password=user.password' in the line: >         response = self.client.login(username=user.username, > password=user.password) 'user.password' - is not plain text password, it's encrypted and it's not equal 't3stp@s$' ! Alexey rudyryk /// On We