Re: How to find the word 'python' in string 'pythonpythonpythonpyth'?

2014-11-05 Thread Denis Darii
Vitaly feel free to look on https://www.python.org/ for a solution to your
issue and please keep only django related questions in this "Django users"
group.
Thank you.
Denis.

On 5 November 2014 12:41, Віталій Лисенко  wrote:

> Sorry. I asked the question incorrectly.
> Example.
> I line 'pythonpythonpyth'. How do I know which word is the foundation
> line?.
> Other examples:
> "DOLORIUMD" --> rigth answer DOLORIUM
> "HELLOL" --> HELLOL
> "thewordword" --> thewordword
>
> I need to know whether the word in the text is repeated and get it. This
> will be the key.
>
> On 5 November 2014 13:22, Rafael E. Ferrero 
> wrote:
>
>> a.find('python')
>>
>>
>> --
>> Rafael E. Ferrero
>>
>> 2014-11-05 8:16 GMT-03:00 Віталій Лисенко :
>>
>>> How to find the word 'python' in string 'pythonpythonpythonpyth'?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/5cb8f985-b3aa-4df7-aed7-6a1859e7a87c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/xNEunhaILUI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJJc_8X3nEz5t7TF6cJ4thQOt5T8SLCqLpCE6xS-tT7sR7832g%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Best regards Vitaly Lysenko from village Markove (Ukraine)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJJKi7dz45x0sf7vBRyOOTOwr6F_Tu3bbwv0o4wzEtsWUVe-%3DA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
I'm using Linux because i'm freedom dependent.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGyQdPrip8ccCmX9LjTLu55BmNmhZHNbvKf-MiRmG%2BZyPmo9Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simple question on queryset.

2012-03-27 Thread Denis Darii
I think the error "Memberships has no attribute all" is not related to your
QuerySet. Try to look deeply into your code.

BTW, your QuerySet must be:

queryset = Memberships.objects.get(id=4)

or better, if your id is also the primary key:

queryset = Memberships.objects.get(pk=4)

On 27 March 2012 08:57, Stanwin Siow  wrote:

>
> Hello,
>
> How do i transform this SQL query into a queryset?
>
> select membership_type from memberships where id ='4'
>
> i tried the following:
>
> queryset = Memberships.objects.get(id__exact=4)
>
> however django is throwing me an error with the following:
>
> Memberships has no attribute all.
>
>
> I know this is a trivial question but i've been through the tutorials
> https://docs.djangoproject.com/en/dev/topics/db/queries/
>
> and i don't unds where this error is coming from.
>
> Do appreciate any help rendered.
>
> Thank you.
>
>
> Best Regards,
>
> Stanwin Siow
>
>
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
I'm using Linux because i'm freedom dependent.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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 ?
>
> Thanks in advance.
>
> --
> Regards
> Nikhil Verma
> +91-958-273-3156
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
I'm using Linux because i'm freedom dependent.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: What directory do I install Django on Linux server

2012-03-14 Thread Denis Darii
Hello Alex.

Yes, when you install django using *"pip install django*" or "*python
setup.py install*" directly from the source, the code goes to the correct
directory inside of the "current" sites-packages.

To find out where your installed django code is placed you can simply run:

$ python -c "import django; print(django.__path__)"

Hope it helps.

On Wed, Mar 14, 2012 at 7:00 PM, Alex Glaros  wrote:

> Does it make any difference what directory I download and unzip Django
> tarball on a Linux server?
>
> Should it be nside the Python directory?
>
> When I install, does it find its correct directory by itself?
>
> thanks,
>
> Alex Glaros
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin login

2012-03-14 Thread Denis Darii
Try to create your superuser again:

./manage.py createsuperuser


On Wed, Mar 14, 2012 at 6:25 PM, vikalp sahni  wrote:

> You have to check your
>
> SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if
> not cookies will not properly set and hence login will not be allowed)
>
> the best would be to use some host entry like example.com 127.0.0.1 and
> then use that in SESSION_COOKIE_DOMAIN and for accessing project on browser.
>
> Regards,
> //Vikalp
>
>
> On Wed, Mar 14, 2012 at 10:51 PM, dummyman dummyman wrote:
>
>>
>> Hi,
>> I created a new project in django
>>
>> 1.I created a new database
>> 2. I created a new user
>> 3.python manage syncdb
>> 4.python manae.py runserver
>>
>> when i visit localhost:8080/admin -> it asks for username n passwd. but
>> the login fails inspite of entering correct one
>>
>> But it works for a different project
>>
>> --
>> 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, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django hgwebdir

2012-03-07 Thread Denis Darii
using django? hmmm...

you can browse your current repo via http on port 8000 by launching:

$ hg se

or:

$ hg se -n "Your repo"

On Wed, Mar 7, 2012 at 1:39 PM, siva <85s...@gmail.com> wrote:

>
>
> Is it possible can we see hg repository using django ?
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Template filters and translations to russian language

2012-03-07 Thread Denis Darii
Try to change also the language of your browser, this because you have
LANGUAGES = (('ru', 'Russian'), ('en_US', 'English'))

and probably in your browser is set EN.

Or force it to RU:

from django.utils.translation import activate
activate('ru')


On Wed, Mar 7, 2012 at 12:20 PM, Tom Evans  wrote:

> On Wed, Mar 7, 2012 at 9:38 AM, filias  wrote:
> > Hi,
> >
> > I am developing a website in russian and the original is in english. We
> are
> > using the po file to translate the strings.
> >
> > My problem now is that when I use template filters, for example date or
> > localnaturalday the translations do not appear. Everything appears in
> > english.
> > However, if I change the LANGUAGE_CODE from 'ru' to 'de_DE' everything
> > appears correctly in german.
> >
> > My settings are:
> >
> > LANGUAGES = (('ru', 'Russian'), ('en_US', 'English'))
> > LANGUAGE_CODE = 'ru'
> >
> > What am I missing here?
> >
> > Thanks for the help.
>
> I think you are missing this:
>
>
> https://docs.djangoproject.com/en/1.3/topics/i18n/localization/#locale-restrictions
>
> Although it looks like Django 1.3 has a ru translation, so I'm not
> convinced..
>
> Cheers
>
> Tom
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django profile

2012-03-02 Thread Denis Darii
1. http://pinaxproject.com/
2. http://django-userena.org/

On Fri, Mar 2, 2012 at 9:26 PM, Bolang  wrote:

> Can someone suggest me an application for adding user profile to django?
> I have found 
> http://code.google.com/p/**django-profile/and
> https://bitbucket.org/**ubernostrum/django-profilesbut
>  those 2 projects don't receive update recently.
>
> Thanks
>
> --
> 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, send email to django-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Denis Darii
try to use DjangoStack 1.4b1-0 instead of 1.3.1-1

On Wed, Feb 29, 2012 at 7:07 AM, WuWoot  wrote:

> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
> ran on Ubuntu 11.10 with PostgreSQL 9.1.2
>
> Sorry for my newbie question.
>
> I got to the portion where it asks me to import timezone from the
> django.utils module but all I manage to receive is:
>
> >>> from django.utils import timezone
> Traceback (most recent call last):
>  File "", line 1, in 
> ImportError: cannot import name timezone
>
> If I cannot do the above, I cannot get to the next line in the shell:
>
> >>> p = Poll(question="What's new?", pub_date=timezone.now())
>
>
> Anybody ever encounter this issue? I've attempted to look for a
> timezone setting in my settings.py and the only setting I can modify
> seems to be the location. A preliminary Google search and
> StackOverflow search turned up nothing. Your help is greatly
> appreciated. Thanks!
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
Of course, from the django documentation(
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files
):

> The script should be run from one of two places:
>
>- The root directory of your Django project.
>- The root directory of your Django app.
>
> The script runs over your project source tree or your application source
> tree and pulls out all strings marked for translation.
>

So "The script runs over your project source tree or your application
source tree"...

On Mon, Feb 27, 2012 at 11:03 PM, nicolas HERSOG <n.her...@gmail.com> wrote:

> I've already tried this, django created LC_MESSAGE folder in locale, but
> this folder is empty (no django.po file is generated :/)
>
> I'm guessing if the problem is not the way i tagged the things to
> translate ...
> I added to all the html files i wanted to translate the tag {% load i18n
> %} and all the strings i wanted to translate are between {%trans
> "myStringToTranslate" %}
>
> Is the fact that my /template folder is not in the same path than m apps
> may be a problem ?
>
>
> On Mon, Feb 27, 2012 at 10:58 PM, Denis Darii <denis.da...@gmail.com>wrote:
>
>> Hi Nicolas.
>> Try to run makemessages script from the root directory of your Django
>> app, so:
>>
>> $ cd /your/app/path/
>> $ mkdir locale
>> $ django-admin.py makemessages -l en
>>
>>
>>
>> On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG <n.her...@gmail.com>wrote:
>>
>>> Yes, I have my app in INSTALLED_APPS and I also have added this key in
>>> my settings :
>>>
>>> USE_I18N = True
>>> USE_L10N = True
>>>
>>> MIDDLEWARE_CLASSES = (
>>> 'django.middleware.common.CommonMiddleware',
>>> 'django.contrib.sessions.middleware.SessionMiddleware',
>>> 'django.middleware.csrf.CsrfViewMiddleware',
>>> 'django.contrib.auth.middleware.AuthenticationMiddleware',
>>> 'django.contrib.messages.middleware.MessageMiddleware',
>>> 'debug_toolbar.middleware.DebugToolbarMiddleware',
>>> )
>>>
>>> TEMPLATE_CONTEXT_PROCESSORS = (
>>>  'django.contrib.auth.context_processors.auth',
>>> 'django.core.context_processors.debug',
>>>  '*django.core.context_processors.i18n*',
>>> 'django.core.context_processors.media',
>>>  'django.core.context_processors.static',
>>> 'django.contrib.messages.context_processors.messages'
>>> )
>>>
>>> INSTALLED_APPS = (
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.sites',
>>> 'django.contrib.messages',
>>> 'registration',
>>> 'mySUPERAPP',
>>> 'debug_toolbar',
>>> 'django.contrib.admin',
>>> 'captcha',
>>> )
>>>
>>> Did I miss something in MIDDLEWARE_CLASSES for exemple ?
>>>
>>> Ty all :)
>>>
>>> Nicolas
>>>
>>>
>>> On Mon, Feb 27, 2012 at 10:45 PM, Ian Clelland <clell...@gmail.com>wrote:
>>>
>>>> On Mon, Feb 27, 2012 at 1:36 PM, nicolas HERSOG <n.her...@gmail.com>wrote:
>>>>
>>>>> Fun fact, I tried the command manage.py compilemessages, it takes
>>>>> loong time to finish and parse all of my workspace in order to create
>>>>> translation file xD.
>>>>> All my home except my project :| ...
>>>>>
>>>>>
>>>> Does your INSTALLED_APPS setting contain the apps that should be
>>>> translated?
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Ian Clelland
>>>> <clell...@gmail.com>
>>>>
>>>> --
>>>> 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, send email to
>>>> django-users+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>
>>>  --
>>> 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, send email to
>>> django-users+unsubscr...@googlegroups.

Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
Hi Nicolas.
Try to run makemessages script from the root directory of your Django app,
so:

$ cd /your/app/path/
$ mkdir locale
$ django-admin.py makemessages -l en


On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG  wrote:

> Yes, I have my app in INSTALLED_APPS and I also have added this key in my
> settings :
>
> USE_I18N = True
> USE_L10N = True
>
> MIDDLEWARE_CLASSES = (
> 'django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'debug_toolbar.middleware.DebugToolbarMiddleware',
> )
>
> TEMPLATE_CONTEXT_PROCESSORS = (
>  'django.contrib.auth.context_processors.auth',
> 'django.core.context_processors.debug',
>  '*django.core.context_processors.i18n*',
> 'django.core.context_processors.media',
>  'django.core.context_processors.static',
> 'django.contrib.messages.context_processors.messages'
> )
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.messages',
> 'registration',
> 'mySUPERAPP',
> 'debug_toolbar',
> 'django.contrib.admin',
> 'captcha',
> )
>
> Did I miss something in MIDDLEWARE_CLASSES for exemple ?
>
> Ty all :)
>
> Nicolas
>
>
> On Mon, Feb 27, 2012 at 10:45 PM, Ian Clelland  wrote:
>
>> On Mon, Feb 27, 2012 at 1:36 PM, nicolas HERSOG wrote:
>>
>>> Fun fact, I tried the command manage.py compilemessages, it takes
>>> loong time to finish and parse all of my workspace in order to create
>>> translation file xD.
>>> All my home except my project :| ...
>>>
>>>
>> Does your INSTALLED_APPS setting contain the apps that should be
>> translated?
>>
>>
>> --
>> Regards,
>> Ian Clelland
>> 
>>
>> --
>> 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, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: method for checking logged in user

2012-02-26 Thread Denis Darii
This is for you:
https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_authenticated

On Sun, Feb 26, 2012 at 6:55 PM, rafiee.nima  wrote:

> Hi
> I want to know is there any built in function to check if a user is
> logged in
> actually I want to check if a user from a request is logged in or not
> tnx
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Any Singaporean Django developers out there?

2012-02-26 Thread Denis Darii
 Is there some demand for django programmers?

On Sun, Feb 26, 2012 at 5:21 AM, Kolbe  wrote:

> It's like Django is nonexistent in Singapore!
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Installing Django from GIT/Subversion - package dependency in virtual environment

2012-02-20 Thread Denis Darii
Yes Mateusz, you understood right.

On Mon, Feb 20, 2012 at 4:07 PM, Mateusz Marzantowicz <
mmarzantow...@gmail.com> wrote:

> Yes, it works!
>
> Although I was previously installing Django according to docs at
> https://docs.djangoproject.com/en/1.3/topics/install/#installing-development-version,
>  your method works perfectly so far.
>
> I understand that keep in sync with trunk/master is as easy as invoking
> git pull (svn up) and then setup.py install in src/django directory in
> virtualenv root?
>
>
> Mateusz Marzantowicz
>
>
> On Mon, Feb 20, 2012 at 1:53 PM, Denis Darii <denis.da...@gmail.com>wrote:
>
>> Do you mean django-trunk installation?
>>
>> If so, I use this in my requirements.txt:
>>
>> -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk
>>
>> or directly with pip:
>>
>> $ pip install -e svn+
>> http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk
>>
>> Hope it helps.
>>
>> On Mon, Feb 20, 2012 at 1:36 PM, Mateusz Marzantowicz <
>> mmarzantow...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm having a problem with managing Django installation which was done
>>> from git repository
>>> (might be svn as well) in clean virtual environment. The problem is that
>>> when I install some
>>> other package via pip which has a Django as a dependency, it doesn't
>>> find my django installation
>>> and then downloads official release. I really need only one Django
>>> installation in my virtualenv,
>>> the one from git :) It is more related to how pip works but does anyone
>>> has any idea how to do it the right way?
>>>
>>>
>>> Thanks,
>>> Mateusz Marzantowicz
>>>
>>>  --
>>> 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, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>>
>> --
>> This e-mail and any file transmitted with it is intended only for the
>> person or entity to which is addressed and may contain information that is
>> privileged, confidential or otherwise protected from disclosure. Copying,
>> dissemination or use of this e-mail or the information herein by anyone
>> other than the intended recipient is prohibited. If you are not the
>> intended recipient, please notify the sender immediately by return e-mail,
>> delete this communication and destroy all copies.
>>
>> --
>> 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, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Year dropdown in Django admin

2012-02-20 Thread Denis Darii
I was in the same situation as you and I found this solution...
in your models.py:

import datetime
YEAR_CHOICES = []for r in range(1980,
(datetime.datetime.now().year+1)):YEAR_CHOICES.append((r,r))


so, your field can now use YEAR_CHOICES:

year = models.IntegerField(_('year'), max_length=4,
choices=YEAR_CHOICES, default=datetime.datetime.now().year)



On Mon, Feb 20, 2012 at 3:47 PM, grimmus  wrote:

> Hi,
>
> I have a car model that contains many fields including a 'year' field. I
> need the dropdown for this field to display the current year as the first
> option and also display the previous 25 years as individual options.
>
> I was thinking i could create a list object and then populate the list
> based on the current year and work my way back to 25 years earlier.
>
> I am not sure how to implement this so it would work in the Django admin
> area.
>
> Could someone please point me in the right direction with this ?
>
> Thank you in advance.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/NUO22GxW7UEJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Installing Django from GIT/Subversion - package dependency in virtual environment

2012-02-20 Thread Denis Darii
Do you mean django-trunk installation?

If so, I use this in my requirements.txt:

-e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk

or directly with pip:

$ pip install -e svn+
http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk

Hope it helps.

On Mon, Feb 20, 2012 at 1:36 PM, Mateusz Marzantowicz <
mmarzantow...@gmail.com> wrote:

> Hello,
>
> I'm having a problem with managing Django installation which was done from
> git repository
> (might be svn as well) in clean virtual environment. The problem is that
> when I install some
> other package via pip which has a Django as a dependency, it doesn't find
> my django installation
> and then downloads official release. I really need only one Django
> installation in my virtualenv,
> the one from git :) It is more related to how pip works but does anyone
> has any idea how to do it the right way?
>
>
> Thanks,
> Mateusz Marzantowicz
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: number input format

2012-02-07 Thread Denis Darii
from the django's global_settings:

# Decimal separator symbol
DECIMAL_SEPARATOR = '.'

# Boolean that sets whether to add thousand separator when formatting
numbers
USE_THOUSAND_SEPARATOR = False

# Number of digits that will be together, when spliting them by
# THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
NUMBER_GROUPING = 0

# Thousand separator symbol
THOUSAND_SEPARATOR = ','

On Tue, Feb 7, 2012 at 11:56 AM, Vittorino Parenti <
vpare...@thundersystems.it> wrote:

> Hi,
> I saw there is this setting DATE_INPUT_FORMATS for date.
> Is there a similar solution for the numbers?
> Thanks,
> Vittorino.
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Denis Darii
Under nginx you can set "autoindex" to "off" for "/static/" location:

location /static/
{
autoindex off;
root /path/to/your/static/;
}

More info here: http://wiki.nginx.org/HttpAutoindexModule

On Mon, Feb 6, 2012 at 3:53 PM, Robert Steckroth
wrote:

> Hey Guys, I am looking for a way to hide my media files from
> direct access. What is the common practice here?
> If one would browse to http://www.example.com/static in one of my Django
> sites there would be
> a list of all the files used therein. Is there a way to hide/prevent this
> url from having a directory tree?
>
> --
> Bust0ut Surgemcgee  ---
> BudTVNetwork.com
> RadioWeedShow.com
> PBDefence.com
> "Bringing entertainment to Unix"
> "Finding the exit without looking"
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Making login Testing

2012-02-06 Thread Denis Darii
Yes Rubén you are right,
also you can use directly self.client.login() method:

...

def setUp(self):login =
self.client.login(username='myusername', password='mypass')
self.assertTrue(login)


On Mon, Feb 6, 2012 at 12:46 PM, xina towner  wrote:

> Hi, I've a question, how can I make login while testing? shouldn't be
> enough to do something like this:
>
> def setUp(self):
> response = self.post('/accounts/login/', {'username': 'username',
> 'password': 'username'})
> self.assertEqual(response.status_code, 200, "Login Failure")
> pass
>
> I understand that this setUp makes login before every test. Can you tell
> me if I am right?
>
> --
> Gràcies,
>
> Rubén
>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: dynamic permissions

2012-02-05 Thread Denis Darii
It seems that you are looking for a "per object permissions" system, so
take a look at django-guardian: https://github.com/lukaszb/django-guardian

On Sun, Feb 5, 2012 at 3:59 PM, Vittorino Parenti <
vpare...@thundersystems.it> wrote:

> i've a model with document'categories and a model with documents. i
> want set permissions per categories: add invoices, download invoices
> and so on (invoice is an example of category).
> Thanks,
> Vittorino
>
>
> On 5 Feb, 12:21, kenneth gonsalves  wrote:
> > On Sun, 2012-02-05 at 03:02 -0800, Vittorino Parenti wrote:
> > > I would like to create dynamic downloading permissions:
> > > - can download invoices
> > > - can upload invoices
> > > - can download contracts
> >
> > what is dynamic about this?
> > --
> > regards
> > Kenneth Gonsalves
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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 subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/lDnCch_r3lAJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 total(self):
 return self.total_no_vat() * 1.21

 def formatted_total(self):
 return format(self.total(), settings.DECIMAL_SEPARATOR, 2)

now you can use formatted_total in your list_display
Denis.


On Sat, Feb 4, 2012 at 2:40 PM, Vittorino Parenti <
vpare...@thundersystems.it> wrote:

> 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"),
>  )
>  total_fee = models.DecimalField (
>default = 0,
>max_digits = 11,
>decimal_places = 4,
>verbose_name = _("Total Fee"),
>  )
>  
>   def total_no_vat(self):
> total_no_vat -no= self.total_income + self.total_fee
> return format(total_no_vat, settings.DECIMAL_SEPARATOR, 2)
>
>  def total(self):
>  total = self.total_no_vat() * 1.21
>  return format(total, settings.DECIMAL_SEPARATOR, 2)
>
> type of self.total_no_vat is unicode and I cannot do other operations
> on this field.
> Thanks,
> Vittorino
>
>
> On 4 Feb, 10:15, Denis Darii <denis.da...@gmail.com> wrote:
> > Hi Vittorino, this is happen because the model fields are automatically
> > formatted by django considering your settings.DECIMAL_SEPARATOR, but in
> > your total() you're simply return the sum of two Decimal()
> >
> > To solve this you can import format and pass the result of total() to it
> > like:
> >
> > from django.conf import settings
> > from django.utils.numberformat import format
> > ...
> >  def total(self):
> > total = self.total_income + self.total_fee
> > return format(total, settings.DECIMAL_SEPARATOR, 2)
> >
> > hope it helps! Have a nice weekend!
> > Denis.
> >
> > On Sat, Feb 4, 2012 at 9:52 AM, Vittorino Parenti <
> >
> >
> >
> >
> >
> >
> >
> > vpare...@thundersystems.it> wrote:
> > > 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 = _("Total Income"),
> > >  )
> > >  total_fee = models.DecimalField (
> > >default = 0,
> > >max_digits = 11,
> > >decimal_places = 4,
> > >verbose_name = _("Total Fee"),
> > >  )
> > >  
> > >  def total(self):
> > > return self.total_income + self.total_fee
> >
> > > ADMIN
> > > ---
> > > class ProcedureAdmin(dmin.ModelAdmin):
> > >  list_display = (..., 'total_income', 'total_fee', 'total', ...)
> >
> > > output is:
> >
> > > ... | 35,22 | 9,28 | 45.50 | ...
> >
> > > with comma in first two cases and dot then.
> > > How can I do?
> > > Thanks in advance,
> > > Vittorino
> >
> > > --
> > > 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, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Using another database while testing

2012-02-01 Thread Denis Darii
You can redefine your database connection by adding somewhere at the end of
your settings.py something like:

import sys
if 'test' in sys.argv:
DATABASES = ...

hope this helps.

On Wed, Feb 1, 2012 at 6:01 PM, xina towner  wrote:

> I have a problem, django can't create my database because a dependency, I
> create it manually with a script, is there any way I can specify to the
> testing tool to use my database?thanks
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: tutorial 2 admin site problem

2012-01-18 Thread Denis Darii
You can replace:

url(r'^admin/', include(admin.site.urls)),
>
with:

url(r'^/', include(admin.site.urls)),
>
in your *urls.py* if you really want to have the admin at /. But are you
aware of what this implies?

On Wed, Jan 18, 2012 at 12:31 PM, Krondaj  wrote:

> Hi,
>
> I have just started tutorial part 2 and in part 2.4.1.
>
> I have added django.contrib.admin to the INTALLED_APPS part of
> mysettings.py
> I syncd the db
> I uncommented the requierd three lines from urls.py in mysite folder
>
> I ran the runserver, and go to 127.0.0.1:8000, using chromium
>
> This is what I see
>
> Page not found (404)
> Request Method: GET
> Request URL:http://127.0.0.1:8000/
> Using the URLconf defined in mysite.urls, Django tried these URL
> patterns, in this order:
> ^admin/
> The current URL, , didn't match any of these.
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a
> standard 404 page.
>
> If I type the url  127.0.0.1:8000/admin/
> it goes to the login page.
>
> Why do I get this message, I shouldn't have to type the url in for
> admin manually, i should be able to to this from the homescreen??
>
> Any idea's??
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Removing Save functionality from Admin

2012-01-12 Thread Denis Darii
You can rewrite the *has_add_permission* method of your admin class and
return False.
More info here:
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.
has_add_permission

On Thu, Jan 12, 2012 at 5:51 PM, Swaroop Shankar V wrote:

> Hi All,
> I guess the question was not clear and am sorry for that. I have a model
> by the name Photos. I have enabled the admin section for this model.
> I don't want the admin to create any entries for this models from the admin
> area, so i need to remove the 'Add Photos' button on top of the Photos
> listing page. How can it be done? Hope my question is much more clear now.
> Thanks
>
> Regards,
>
> Swaroop Shankar V
>
>
>
>
> On Thu, Jan 12, 2012 at 2:53 PM, Swaroop Shankar V wrote:
>
>> Hi,
>>
>> I have a model called Photos, I would like to remove the save button and
>> functionality from the admin area for photos model. Is it possible?
>>
>> Thanks and Regards,
>>
>> Swaroop Shankar V
>>
>>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error: No module named debug_toolbar

2012-01-04 Thread Denis Darii
Hi Alec,

I'm pretty sure that there is something that doesn't consider your active
environment so django try to find debug_toolbar in your global packages.
To prove this, try to compare the list of your installed packages with and
without virtualenv active.
So do:
(Pinax-env) P:\Projects\Pinax>pip freeze
(Pinax-env) P:\Projects\Pinax>deactivate
P:\Projects\Pinax>pip freeze

you can observe that "django-debug-toolbar==x.x.x" is't present in the
second "global" list of packages.

Now you must understand what disables your virtualenv when you do
"manage.py syncdb"
And as the first attempt, try to run the "manage.py syncdb" with your
environment python executable, placed in (Pinax-env)/bin/python

On Wed, Jan 4, 2012 at 2:20 AM, Alec Taylor <alec.tayl...@gmail.com> wrote:

> Thanks Denis, but unfortunately that didn't work.
>
> On Tue, Jan 3, 2012 at 11:31 PM, Denis Darii <denis.da...@gmail.com>
> wrote:
> > Try to force the installation inside your env:
> >
> > (Pinax-env) P:\Projects\Pinax>pip install --ignore-installed
> > django-debug_toolbar
> >
>
> (Pinax-env) P:\Projects\Pinax>pip install --ignore-installed
> django-debug_toolbar
> Downloading/unpacking django-debug-toolbar
>  Downloading django-debug-toolbar-0.9.1.tar.gz (148Kb): 148Kb downloaded
>  Running setup.py egg_info for package django-debug-toolbar
>
> Installing collected packages: django-debug-toolbar
>  Found existing installation: django-debug-toolbar 0.8.5
>Uninstalling django-debug-toolbar:
>  Successfully uninstalled django-debug-toolbar
>  Running setup.py install for django-debug-toolbar
>
> Successfully installed django-debug-toolbar
> Cleaning up...
>
> (Pinax-env) P:\Projects\Pinax>manage.py syncdb
> Error: No module named debug_toolbar
>
> > On Tue, Jan 3, 2012 at 12:31 PM, Alec Taylor <alec.tayl...@gmail.com>
> wrote:
> >>
> >> Unfortunately I keep getting this error, no mater what I do.
> >>
> >> Here's what I've attempted: http://pastebin.com/jcrSSYvd
> >>
> >> How do I solve this error?
> >>
> >> Thanks for all suggestions,
> >>
> >> Alec Taylor
> >>
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error: No module named debug_toolbar

2012-01-03 Thread Denis Darii
Try to force the installation inside your env:

(Pinax-env) P:\Projects\Pinax>pip install* --ignore-installed *
django-debug_toolbar

On Tue, Jan 3, 2012 at 12:31 PM, Alec Taylor  wrote:

> Unfortunately I keep getting this error, no mater what I do.
>
> Here's what I've attempted: http://pastebin.com/jcrSSYvd
>
> How do I solve this error?
>
> Thanks for all suggestions,
>
> Alec Taylor
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django dev/deploy environment for distributed agile teams

2011-12-31 Thread Denis Darii
Hi Ashkan,

You can take a look at our project: django-fagungis = DJANGO + FAbric +
GUnicorn + NGInx + Supervisor deployment
Here: https://bitbucket.org/DNX/django-fagungis/
We use it for the same purpose as you described.
If you have some questions, suggestions or ideas about and for the project
feel free to open an issue on bitbucket.

Happy new year to all!


On Sat, Dec 31, 2011 at 8:11 PM, Paul Msegeya  wrote:

> sounds good...Happy new year too.
>
>
> On Sat, Dec 31, 2011 at 10:25 PM, Ashkan Roshanayi <
> ashkan.roshan...@gmail.com> wrote:
>
>> Hi everybody, we are working in a geographically distributed agile team.
>> I am trying to design and configure our development environment and
>> deployment procedures and need to know about your valuable experiences. My
>> requirements are:
>>
>> * Each new developer can kick-start developing: dev environment and all
>> installs/configs (python related) should be achievable in 15 minutes. This
>> procedure should be automated and repeatable.
>>
>> * Everybody can pull & build whole project locally and run complete
>> *functional* test suite
>>
>> * Upon pushing code in our Github repo, it will be pulled out by our
>> build/staging server automatically --> all *functional* & *non-functional*
>> tests will be run by Jenkins --> if successful: we can test it manually on
>> this server too.
>>
>> * Admins can choose some features or profiles on this staging server and
>> deploy them to live (production) server by ideally executing a script
>>
>>
>> I've read a lot about virtualenv, pip, fabric, puppet, chef & blueprint
>> and used some of them but want to hear more about your recommendations,
>> best practices and potential pitfalls. Appreciate it very much.
>>
>> Happy new year :)
>>
>> --
>> Ashkan
>>
>> --
>> 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, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django-admin disable plus sign

2011-12-30 Thread Denis Darii
Also take a look at this ticket: https://code.djangoproject.com/ticket/9071

On Fri, Dec 30, 2011 at 3:38 PM, Denis Darii <denis.da...@gmail.com> wrote:

> You can rewrite the *has_add_permission* method of your admin class and
> return False for your user.
> More info here:
> https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_add_permission
>
>
> On Fri, Dec 30, 2011 at 3:21 PM, torgia <gianluca.tortore...@gmail.com>wrote:
>
>> If I have a model with a Foreignkey field, the django admin shows a
>> plus button so you can add the related objects on the spot. Is there a
>> way to disable this functionality for some models without editing user
>> permission ?
>>
>> --
>> 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, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> This e-mail and any file transmitted with it is intended only for the
> person or entity to which is addressed and may contain information that is
> privileged, confidential or otherwise protected from disclosure. Copying,
> dissemination or use of this e-mail or the information herein by anyone
> other than the intended recipient is prohibited. If you are not the
> intended recipient, please notify the sender immediately by return e-mail,
> delete this communication and destroy all copies.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django-admin disable plus sign

2011-12-30 Thread Denis Darii
You can rewrite the *has_add_permission* method of your admin class and
return False for your user.
More info here:
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_add_permission

On Fri, Dec 30, 2011 at 3:21 PM, torgia wrote:

> If I have a model with a Foreignkey field, the django admin shows a
> plus button so you can add the related objects on the spot. Is there a
> way to disable this functionality for some models without editing user
> permission ?
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: project help

2011-12-28 Thread Denis Darii
You can also consider to use pinax: http://pinaxproject.com/

or userena for accounts: http://django-userena.org/

Denis.

On Tue, Dec 27, 2011 at 8:58 PM, Jesramz wrote:

> Hello All,
>
> I would like to create a job search project a lot like monster or
> indeed.
>
> Does anyone have any resources such as other projects or repositories
> similar to what I'm looking for that can push me in the right
> direction? Or any advice whatsoever would also be appreciated.
>
> I am planning on using:
>django registration
>django profiles
>geodjango
>
> Not sure what else yet
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django CMS and django-admin-tools are together?

2011-12-27 Thread Denis Darii
I have a project in which I use django-cms and django-admin-tools together
in production and I hadn't had any problems using it until now.

On Tue, Dec 27, 2011 at 9:27 AM, Maxim Boyarskiy
wrote:

> Hi Guys,
>
> One question here: Is it possible and justified to use django-admin-
> tools over django-cms? I have no experience with Django-CMS and django-
> admin-tools, but I read that django-admin-tools is one of django-cms
> apps. I mean, I have to implement user filled resource and I look at
> cms, but I have to have some flexibility with content and page blocks
> on admin's page and I think, I have to use django-admin-tools.
>
> Thanks.
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Writing apps for django

2011-12-25 Thread Denis Darii
http://djangopackages.com/ is what you need.

On Sun, Dec 25, 2011 at 2:04 PM, Lukasz <thelvyn...@gmail.com> wrote:

>
> On 24 déc, 18:18, Denis Darii <denis.da...@gmail.com> wrote:
> > Take a look at Django Conventions:
> http://ericholscher.com/projects/django-conventions/
> >
> > Also this article could be useful for you:
> http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/
> >
>
> Thanks, Django Conventions looks like something I was looking for :)
>
> Another thing, do you have any example, other than the admin app, of
> reusable django applications ? I find it hard to figure out what a
> reusable web app can be :)
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Writing apps for django

2011-12-24 Thread Denis Darii
Take a look at Django Conventions:
http://ericholscher.com/projects/django-conventions/

Also this article could be useful for you:
http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/

Cheers,
Denis.

On Sat, Dec 24, 2011 at 10:38 AM, Lukasz  wrote:

> Hi all !
>
> I'm looking for documentation about writing apps for django. When
> should I write an app for django instead coding my project directly,
> how to write an app for django, etc.
>
> I'd like to have some philosophical guidelines and some technical
> documentation.
>
>
> Thanks !
>

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Denis Darii
*SublimeText2*, and here my configuration for it:
http://wiki.ddenis.com/index.php?title=The_best_text_editor_is_Sublime_Text_2_or_it_doesn%27t_exist

On Mon, Dec 19, 2011 at 12:34 PM, Masklinn  wrote:

> On 2011-12-19, at 11:34 , Alec Taylor wrote:
> > I'm looking for a Django IDE which incorporates the following features:
> PyCharm does seem to satisfy all your requirements:
>
> > - Syntax-highlighting
> Supports highlighting of Python and JS files, HTML and CSS, and Django
> template files
>
> > - Projects (all code file of the project shown separated by directory
> > in a sidebar)
> The project sidebar section is a standard featore of the IntelliJ
> platform, so it's there.
>
> > - Tabs (with close buttons on tab)
> And tabs can be "torn out" to separate windows and merged back. It
> also supports split views, each split having its own tabset.
>
> > - Code-completion (with good introspection)
> In all editors, including Django templates. Introspection could be
> better, but is generally OK. Also features a bunch of handy
> refactorings and quickfixes.
>
> > - Text-zoom support
> I know it's there somewhere, though I never use it.
>
> > - Start/stop Django server
> And a Django debugger (including debugging of Django templates) as
> well as a testrunner hook.
>
> > - Run+restart Django server shell (manage.py shell) in project (i.e.
> below code)
> Yep, Python and Django shells are both supported.
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread Denis Darii
You can consider to use django-lfs: http://www.getlfs.com/

or satchmo: http://www.satchmoproject.com/

but without basic knowledge of django, it's going to be very hard for you.

On Fri, Dec 16, 2011 at 8:06 AM, Cata  wrote:

> Hello everyone,
>
> I am basically working on creating a website on the lines of Amazon/
> Ebay  wherein user can browse/buy/sell items. I intend to make a basic
> website first then build on top of it.
>
> Till now i have been mostly programming in C/C++ & used Python as an
> automation tool . I am not familiar with any of the Web programming
> languages such as MySQL , JavaScript, HTML , honestly i do not even
> know what these are.
>
> My question is will Django be suitable for the above tasks ? I have
> just installed the framework & going through the tutorials & so far
> it's been wonderful experience
>
> Please pitch in
>
> Thanks
> Cata
>
> --
> 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, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django + ajax waiting page, can not redirect to result page

2011-12-16 Thread Denis Darii
You can view your js errors by pressing CTRL+SWIFT+J in Firefox but i
highly recommend you to install Firebug addon which allow you to view also
the received data from your ajax request.

On Fri, Dec 16, 2011 at 5:24 AM, yun li  wrote:

> Since I am really know nothing about ajax, I am not sure if I
> understand "try changing the return value from the view to a string "
> the right way. I changed the definition of run_DHM this way
>
> def run_DHM(request):
>xx = {'ok':true}
>return(xx)
>
> but still the same as before.
>
> and how I can check if there is any error in JavaScript console in my
> browser ?
>
>
> On 12月15日, 上午8时57分, Brett Epps  wrote:
> > I think the problem might be that you're using the getJSON function,
> which
> > expects a JSON response, but your view returns 'OK', which is not valid
> > JSON. The callback you have given to getJSON only gets called on
> "success"
> > (meaning a JSON document was retrieved) - that's why nothing is happening
> > for you right now. Try changing the return value from the view to a
> string
> > containing:
> >
> > {"ok": true}
> >
> > And then change this line in the JavaScript:
> >
> > if (data == 'OK') {
> >
> > to:
> >
> > if (data.ok) {
> >
> > I think it should work with those changes. If it doesn't, try checking
> the
> > JavaScript console in your browser for any errors.
> >
> > Brett
> >
> > On 12/14/11 4:03 PM, "yun li"  wrote:
> >
> >
> >
> >
> >
> >
> >
> > >But it still cannot work. when I submit something, it goes to the
> > >please_wait page showing "please wait" and then nothing happened. I
> > >really have no knowledge on ajax, so is there something I need to
> > >install or import in my projects? and how can I test if codes in
> > > ... really invoked?
> >
> > >Thanks,
> >
> > >On 12月14日, 下午1时47分, Brett Epps  wrote:
> > >> I think the problem is that your  tag is incorrect. You're
> using
> > >> the same one to load jQuery and to add your code, so your JavaScript
> is
> > >> not getting run. The file "please_wait.html" should look like this:
> >
> > >> 
> > >> 
> > >> 
> > >> Please wait.
> > >> 
> > >>