Re: Django + Bamboo

2013-04-19 Thread Sultan Imanhodjaev
We had some experience of using Bamboo for deployment of our project.
We didn't have rollback setup so once instead of deploying on staging
server we accidentally deployed on production server, though we cancelled
deployment process was not killed by Bamboo and been running in the
background. Production went down, we had to rollback changes manually.

After this accident we back to old good Fabric and puppet.





On Fri, Apr 19, 2013 at 12:25 PM, Daniel França <daniel.fra...@gmail.com>wrote:

> Anyone has any experience configuring Django with Bamboo for deployment
> and tests?
> I'm trying to setup an environment, but there's not much about how to make
> this work.
>
> What's is the best approach? cloud or local server?
> Is it better to work with simple bash scripts or you recommend some other
> tools?
>
>
> Best,
> --
> Daniel França,
> about.me/danielfranca
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.com

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [ANNOUNCE] Django 1.5 release candidate available

2013-01-04 Thread Sultan Imanhodjaev
Cool! :) Happy New Year! Trying out RC1


On Sat, Jan 5, 2013 at 1:07 AM, James Bennett <ubernost...@gmail.com> wrote:

> 1.5 is almost here!
>
> Today marks the release candidate, which you can read about on the weblog:
>
> https://www.djangoproject.com/weblog/2013/jan/04/15-rc-1/
>
> Assuming no release-blocking bugs, Django 1.5 will be released next week.
>
> --
> 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.
>
>


-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.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.



Re: Happy new year

2013-01-01 Thread Sultan Imanhodjaev
Жаңы жылыңыздар менен!



Sultan, Bishkek Kyrgyzstan.


On Tue, Jan 1, 2013 at 10:33 PM, Mark Phillips
<m...@phillipsmarketing.biz>wrote:

> Happy New Year from Arizona!
>
> Mark
> On Jan 1, 2013 9:25 AM, "Amirouche" <amirouche.boube...@gmail.com> wrote:
>
>> Bonne année, paix et prosperités!
>>
>> Amirouche from Paris, FRANCE.
>>
>> On Monday, December 31, 2012 10:42:13 PM UTC+1, cingusoft wrote:
>>>
>>> Happy new year from spain to all django lovers.
>>> I wish you a new year with tons of django projects.
>>>
>>> Cheers
>>> Cingusoft
>>> BlackBerry de movistar, allí donde estés está tu oficin@
>>
>>  --
>> 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/-/He2t7vHzrBAJ.
>> 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.
>



-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.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.



Re: Django 1.5 b1 django-admin.py error

2012-12-10 Thread Sultan Imanhodjaev
It worked for me too but I don't understand why it works this way.

On Tuesday, 4 December 2012 10:53:21 UTC+6, Aapo Rista wrote:
>
> keskiviikko, 28. marraskuuta 2012 16.53.15 UTC+2 Sultan Imanhodjaev 
> kirjoitti:
>
>> I use OSX Lion, virtualenv version 1.7.2, python 2.7.1. I just created a 
>> new virtualenv, downloaded and install Django 1.5 b1.
>>
>
> I had the same problem: Mac OS X 10.8.2, Python 2.7.3 is installed with 
> MacPorts, just downloaded Django-1.5b1.tar.gz, created virtualenv with 
> command
>
> virtualenv ~/Documents/workspace/virtualenv/myproject-1.5
>
> activated it:
>
> source ~/Documents/workspace/virtualenv/myproject-1.5/bin/activate
>
> and then tried to run django-admin.py help. This produced ImportError: 
> Could not import settings blaa blaa blaa.
>
> However, when I unset env variable DJANGO_SETTINGS_MODULE with command:
>
> export DJANGO_SETTINGS_MODULE=
>
> django-admin runs without complaints. You can verify if this variable is 
> set by issuing command:
>
> env | grep DJANGO_SETTINGS_MODULE
>
>
>

-- 
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/-/B0YxD_jfIMcJ.
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 1.5 b1 django-admin.py error

2012-11-28 Thread Sultan Imanhodjaev
Hi,

I use OSX Lion, virtualenv version 1.7.2, python 2.7.1. I just created a new 
virtualenv, downloaded and install Django 1.5 b1.



On Nov 28, 2012, at 8:45 PM, Ramiro Morales wrote:

> On Wed, Nov 28, 2012 at 3:43 AM, Sultan Imanhodjaev
> <sultan.imanhodj...@gmail.com> wrote:
>> Hello,
>> 
>> I just downloaded and type django-admin.py to start a new project and having
>> errors
>> 
>>> (devel)ninja devel: django-admin.py startproject hello
>>> Traceback (most recent call last):
>>> [..]
>> But when I just type django-admin.py I have error
>> 
>>> (devel)ninja devel: django-admin.py
>>> Usage: django-admin.py subcommand [options] [args]
>>> Options:
>>> [...]
>> 
>> Why Django cause this error since I simply use django-admin.py?
> 
> I've just tried to reproduce this based on ther rather sparse description 
> you've
> given us and I don't seee these problems.
> 
> Please expand the decription of your setup, particularly the "I just 
> downloaded"
> part. I see you are using a virtualenv.
> 
> -- 
> Ramiro Morales
> 
> -- 
> 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.
> 

-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.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.



Django 1.5 b1 django-admin.py error

2012-11-27 Thread Sultan Imanhodjaev
Hello,

I just downloaded and type django-admin.py to start a new project and 
having errors

(devel)ninja devel: django-admin.py startproject hello
> Traceback (most recent call last):
>   File "/Users/sultan/.virtualenvs/devel/bin/django-admin.py", line 5, in 
> 
> management.execute_from_command_line()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 452, in execute_from_command_line
> utility.execute()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 391, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 262, in fetch_command
> app_name = get_commands()[subcommand]
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 108, in get_commands
> apps = settings.INSTALLED_APPS
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 52, in __getattr__
> self._setup(name)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 47, in _setup
> self._wrapped = Settings(settings_module)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 132, in __init__
> raise ImportError("Could not import settings '%s' (Is it on 
> sys.path?): %s" % (self.SETTINGS_MODULE, e))
> ImportError: Could not import settings 'settings' (Is it on sys.path?): No 
> module named settings


But when I just type django-admin.py I have error

(devel)ninja devel: django-admin.py 
> Usage: django-admin.py subcommand [options] [args]
> Options:
>   -v VERBOSITY, --verbosity=VERBOSITY
> Verbosity level; 0=minimal output, 1=normal output,
> 2=verbose output, 3=very verbose output
>   --settings=SETTINGS   The Python path to a settings module, e.g.
> "myproject.settings.main". If this isn't provided, 
> the
> DJANGO_SETTINGS_MODULE environment variable will be
> used.
>   --pythonpath=PYTHONPATH
> A directory to add to the Python path, e.g.
> "/home/djangoprojects/myproject".
>   --traceback   Print traceback on exception
>   --version show program's version number and exit
>   -h, --helpshow this help message and exit
> Traceback (most recent call last):
>   File "/Users/sultan/.virtualenvs/devel/bin/django-admin.py", line 5, in 
> 
> management.execute_from_command_line()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 452, in execute_from_command_line
> utility.execute()
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 375, in execute
> sys.stdout.write(self.main_help_text() + '\n')
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 241, in main_help_text
> for name, app in six.iteritems(get_commands()):
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 108, in get_commands
> apps = settings.INSTALLED_APPS
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 52, in __getattr__
> self._setup(name)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 47, in _setup
> self._wrapped = Settings(settings_module)
>   File 
> "/Users/sultan/.virtualenvs/devel/lib/python2.7/site-packages/django/conf/__init__.py",
>  
> line 132, in __init__
> raise ImportError("Could not import settings '%s' (Is it on 
> sys.path?): %s" % (self.SETTINGS_MODULE, e))
> ImportError: Could not import settings 'settings' (Is it on sys.path?): No 
> module named settings


Why Django cause this error since I simply use django-admin.py?

 

-- 
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/-/ypyN1P3MZWgJ.
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: Set-up Problems: Permission denied

2012-11-19 Thread Sultan Imanhodjaev
Did you try 

sudo ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py /usr/local/bin

On Nov 19, 2012, at 11:57 PM, Akia Vongdara wrote:

> I am getting a permission error when I got to this part of the set-up. (I 
> have also replaced the WORKING-DIR fyi)
> 
> ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py /usr/local/bin
> Errors:
> 
> ln: /usr/local/bin/My: Permission denied
> ln: /usr/local/bin/Django: Permission denied
> ln: /usr/local/bin/django-admin.py: Permission denied
> 
> How would I go about this?
> 
> 
> -- 
> 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/-/gfWlLw0rgqAJ.
> 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.

-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06
PGP 0x4E357296
http://imanhodjaev.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.



Re: Recover User by SESSIONID

2012-06-17 Thread Sultan Imanhodjaev
Hey,

In my case I use generated hash from *user.id* and *user.date_joined*passed via
*formData* this is poor implementation and potentially insecure but for a
while it works.


Sultan,
Thanks

On Sun, Jun 17, 2012 at 9:15 PM, upmauro <upma...@gmail.com> wrote:

> Hi ! Sorry my english.
>
> I using uploadfy in my website, this basically is one SWF to upload files.
>
> This works fine, but my question is "how recover logged user in post
> uploader request?"
>
> I have SESSIONID in form and my swf post this, but i don't know recover
> user by session id.
>
> Please help-me, thanks !
>
> --
> 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/-/oeYAADUGPGcJ.
> 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.
>



-- 
Kind regards,
Sultan Imanhodjaev
+996 559 06 76 06

-- 
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: Get the current url in django template

2011-11-10 Thread Sultan Imanhodjaev
Hello,

Once I used request.META["PATH_INFO"]

On Nov 10, 2011 10:54 PM, "Andres Reyes"  wrote:

> To use the request object in a template you need
> django.core.context_processors.request in your TEMPLATE_CONTEXT_PROCESSORS
>
>
> 2011/11/10 Martin Pajuste 
>
>> If you need something like "
>> http://example.com/music/bands/the_beatles/?print=true; try
>> {{request.build_absolute_uri}}
>>
>> https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.build_absolute_uri
>>
>> --
>> 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/-/PzqmOq5u8ysJ.
>>
>> 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.
>>
>
>
>
> --
> Andrés Reyes Monge
> armo...@gmail.com
> +(505)-8873-7217
>
>  --
> 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: Ajax replacement in django

2011-10-12 Thread Sultan Imanhodjaev
Hello,

Did you look at dajax and dajaxice extensions for django so far? It might
help.
On Oct 12, 2011 10:40 PM, "lankesh87"  wrote:

> thank you all for your support.
> I learnt my lessons.
> I have to go back to AJAX.
>
> Thank you again I really needed your help.
>
> I guess I'll be hanging around as I am starting to like python and
> django.
>
> On Oct 12, 8:42 pm, william ratcliff 
> wrote:
> > I think the OP should ask his manager why they wish to avoid using ajax.
> > For example, is it sufficient if the page degrades gracefully for those
> not
> > running javascript?
> >
> > On Wed, Oct 12, 2011 at 11:40 AM, Tom Evans  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Wed, Oct 12, 2011 at 3:24 PM, Javier Guerra Giraldez
> > >  wrote:
> > > > On Wed, Oct 12, 2011 at 9:17 AM, lankesh87 
> wrote:
> > > >>  I am developing a web application where i need ajax like features.
> > > >> But I don't want to use ajax, so my question is- "is there any way
> to
> > > >> perform ajax like functions in django?"
> >
> > > > that kind of specifications (ajax-like but no ajax) sound very weird
> > > > to me.
> >
> > > It's definitely weird, but its not crazy. I'm almost certain the OP
> > > does want to use AJAX, but there are AJAX-like techniques that we used
> > > to do AJAX-like things before XMLHttpRequest existed.
> >
> > > The most common way is to use javascript to programmatically load
> > > content into a hidden . The returned content should have a
> > > 

Re: Django 1.3 - Question about static files

2011-03-27 Thread Sultan Imanhodjaev
Just set the static *STATIC_URL* copy your static files into you application
root e.g. *MY_APP/core and nothing like *
*
*
 r'^static/(?P.*)$',
 'django.views.static.serve',
{'document_root': os.path.join(PROJECT_ROOT, 'static')}

in *urls.py*

**run server this should work, down below my you can see the piece of *
settings.py*

*STATIC_URL = '/static/'*
*
*
*ADMIN_MEDIA_PREFIX = '/static/admin/'*
*
*
*STATICFILES_FINDERS = (*
*'django.contrib.staticfiles.finders.FileSystemFinder',*
*'django.contrib.staticfiles.finders.AppDirectoriesFinder',*
*'django.contrib.staticfiles.finders.DefaultStorageFinder',*
*)*
*
*
*STATICFILES_DIRS = ()*


On Sat, Mar 26, 2011 at 9:49 PM, Igor Nemilentsev <trez...@gmail.com> wrote:

> On 26-03-2011, Sandro Dutra <hexo...@gmail.com> wrote:
> >Hello everyone!
>
> >I'm using Python 2.7.x with Django 1.3 and I've some questions about
> >the new way to set the static files for the dev server.
>
> >abspath = lambda *p: os.path.abspath(os.path.join(*p))
> >PROJECT_ROOT = abspath(os.path.dirname(__file__))
> >(...)
> >MEDIA_ROOT = abspath(PROJECT_ROOT, 'media')
> >MEDIA_URL = '/media/'
> >ADMIN_MEDIA_PREFIX = '/media/admin/'
>
> >STATIC_ROOT = abspath(PROJECT_ROOT, 'static')
> >STATIC_URL = '/static/'
> >STATICFILES_DIRS = (
> >abspath(STATIC_ROOT, 'css'),
> >abspath(STATIC_ROOT, 'javascript'),
> >abspath(STATIC_ROOT, 'images'),
> >)
> I had a similar problem.
> I do not remember, but what I have in my project now
> it is commented out STATIC_ROOT.
>
> If I uncomment STATIC_ROOT it do not work.
>
> STATIC_ROOT_FILES = os.path.join(os.path.dirname(__file__),
> 'static').replace('\\', '/')
> #STATIC_ROOT = STATIC_ROOT_FILES
> STATICFILES_DIRS = (
>STATIC_ROOT_FILES,
> )
> STATIC_URL = "/static/"
>
> --
> Practical politics consists in ignoring facts.
>-- Henry Adams
>
> --
> 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.
>
>


-- 
Kind regards,
Sultan Imanhodjaev
+996 779 230 968

-- 
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: ANN: Django 1.3 released

2011-03-23 Thread Sultan Imanhodjaev
Wow!!! Congratulations people, thanks to developers!

On Wed, Mar 23, 2011 at 3:59 PM, Marco <chopin1...@gmail.com> wrote:

> so happy
>
> On Wed, Mar 23, 2011 at 5:34 PM, bruno desthuilliers <
> bruno.desthuilli...@gmail.com> wrote:
>
>> On 23 mar, 07:15, James Bennett <ubernost...@gmail.com> wrote:
>> > It's here!
>> >
>> > Django 1.3 has been officially released.
>>
>> Yay great ! Congrats guys.
>>
>> --
>> 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.
>>
>>
>
>
> --
> LinuX
> Violin
> Canon EOS
>
> --
> 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.
>



-- 
Kind regards,
Sultan Imanhodjaev
+996 779 230 968

-- 
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: images in a template

2011-03-19 Thread Sultan Imanhodjaev
The piece of code below from my own development stack

(
 r'^static/(?P.*)$',
 serve,
 {'document_root': '%s/../static' % (APPLICATION,)}
)

On Sat, Mar 19, 2011 at 10:42 PM, Vladimir <veva...@yandex.ru> wrote:

> Thank You, Sultan!
> Search "django.views.static.serve" for Django 1.2 in
> http://docs.djangoproject.com/
> gives nothing. I failed to get any from Your answer, because I'm a
> beginner, You see.
>
> --
> 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.
>
>


-- 
Kind regards,
Sultan Imanhodjaev
+996 779 230 968

-- 
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: images in a template

2011-03-19 Thread Sultan Imanhodjaev
Hello,

Sometimes for unknown reason I've to use a small workaround while
developing

from django.views.static import serve

and then just use serve itself

url((r'^site_media/(?P.*)$', serve,
   {'document_root': settings.STATIC_DOC_ROOT}),

2011/3/19 Vladimir <veva...@yandex.ru>

> Большое спасибо, Артем, за добрый совет, сразу моя ошибка прояснилась!
> У меня есть Подробное руководство А.Головатого и Д.Каплан-Мосса
> (2010), и книга Дж.Форсье, П.Биссекса и У.Чана (2010). Руководство на
> сайте Django я тоже стараюсь читать вдумчиво. Не ожидаю, что за меня
> все сделают. Пока осваиваю азы.
>
> On 19 мар, 17:00, Artem <pkeeper.sh...@mail.ru> wrote:
> > Почемуб тебе сначала не разобратся как и что работает, и не задавать
> > глупых вопросов, за тебя всеравно все не сделают.
> > Почитай (вдумчиво) книжки и туторы по джанге, например мне сам больше
> > помогла разобратся "Beginning Django E-Commerce [Jim McGaw] (2009)"
>
> --
> 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.
>
>


-- 
Kind regards,
Sultan Imanhodjaev
+996 779 230 968

-- 
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.



BDD test scenario localisation

2011-02-07 Thread Sultan Imanhodjaev
Hello,

I was wondering if there any way to localise BDD test according to
project requirement is there any issue?




Sultan

-- 
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: How to define each model in its own file

2011-02-07 Thread Sultan Imanhodjaev
It is also possible to import you models from *models/** from within *
models.py* file.

On Sun, Feb 6, 2011 at 8:02 PM, Mark (Nosrednakram)
<nosrednak...@gmail.com>wrote:

> If there isn't anything in your models/__init__.py nothing will get
> loaded.  You might try somthing like the following in your models/
> __init__.py:
>
> from app.models import modelname
> from app.models import anothermodelname
>
> Where modlenames are actually individual files with model definitions.
>
> Sorry not in a position to test but believe this should work.
>
> Mark
>
> On Feb 6, 5:39 am, "h@ck5t0ck" <hackstock...@gmail.com> wrote:
> > Hi Guys,
> > Am very new to django and am working on a relatively large web
> > application which includes over 15 models.
> > Now I want to define each model in its own file and store them in a
> > folder called models, so I first created the folder "models" and
> > created a file "__init__.py" in that folder and defined each model in
> > a separate file but its not working.
> > Any help on this?
>
> --
> 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.
>
>


-- 
Kind regards,
Sultan Imanhodjaev

-- 
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.