Python Web Development with Django by Wesley Chun

2012-05-21 Thread Ali Shaikh
Hey Django.!!

Please can anyone share Python Web Development with
Django by Wesley Chun E-Book??


Thank Yooo

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



ordering m2m query based on through table

2012-05-21 Thread KentH
I am trying to configure a m2m relationship to be ordered based on data in 
the through table. I assumed an 'order' attribute in the through-table's 
Meta class would be honored, but it's not. Bug #11850 (closed: wontfix) 
relates to this problem, but with no pointer as to a work-around.

As custom ordering would seem a prime use case for a custom through class 
on m2m relations, I'm surprised how hard it is.

In my case, I'm trying to order digital assets (eg sheet music) into a 
number of folios (collections). Music can appear in several collections. 
Order is manually specified for each collection. An attribute in a custom 
through table is a natural solution, but it doesn't work.

Other examples which come to mind: Authors and books, or songs and 
composers. Since books are alphabetized by lead author, the order matters. 
And we wouldn't want Django to list "Lennon & McCartney" songs  as "McCartney 
& Lennon"

Anyway, how is the best way to crack this nut? After studying 
`db.models.related` I tried building a custom manager on the related class, 
and override the `get_query_set` method to look for the through attribute 
on the manager to update the ordered_by clause. No luck -- but with 
prefetch interaction, this seems pretty fragile in any case.

Thanks for any help.

Kent.

-- 
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/-/5vho1aojaboJ.
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.



Time zone support enabled in Django 1.4, yet "Django does not support timezone-aware times"

2012-05-21 Thread Arthur
Hello,

I recently upgraded one of my machines to Django 1.4 to patch a bug related 
to the use of PostGIS 9.1. I read the documentation on the new support for 
time zones and added USE_TZ=True to my settings.py file. Nonetheless, when 
I attempt to load data into my PostGIS database in one of the following 
ways, I receive a ValueError: Django does not support timezone-aware times. 
The full traceback is posted at the end.

In the clean() method of my model:
self.datetime = datetime.datetime.combine(self.date, 
self.time).replace(tzinfo=UTC())

Or in the handle() method of a Command instance:
data_dict['datetime'] = datetime.datetime.combine(data_dict['date'], 
data_dict['time']).replace(tzinfo=UTC())

Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_manager(settings)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 458, in execute_manager
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 381, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 219, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 256, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/dev/gass/../gass/bering/management/commands/load_station_data.py", 
line 108, in handle
data_obj.save() # Save the record to the database only if it doesn't 
already exist
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", 
line 483, in save
force_update=force_update, update_fields=update_fields)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", 
line 578, in save_base
result = manager._insert([self], fields=fields, return_id=update_pk, 
using=using, raw=raw)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 
203, in _insert
return insert_query(self.model, objs, fields, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", 
line 1581, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", 
line 906, in execute_sql
for sql, params in self.as_sql():
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", 
line 869, in as_sql
for obj in self.query.objs
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", 
line 296, in get_db_prep_save
prepared=False)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", 
line 1258, in get_db_prep_value
return connection.ops.value_to_db_time(value)
  File 
"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", 
line 809, in value_to_db_time
raise ValueError("Django does not support timezone-aware times.")
ValueError: Django does not support timezone-aware times.

Any advice is appreciated. 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/-/P37vjM6CWZAJ.
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: Nested Foreign Key relationships in Admin?

2012-05-21 Thread Mike Dewhirst

On 21/05/2012 2:55pm, Mike Dewhirst wrote:

On 21/05/2012 2:45pm, Mike Dewhirst wrote:

On 21/05/2012 1:57pm, Aditya Sriram M wrote:

I'd like to represent foreign key relationships inside the Admin
interface when there are multiple nested one-to-many relationships.


Provided you have the admin app enabled, in your admin.py in the same 
directory as your models.py file you need some nested classes ...


class RootAdmin(admin.ModelAdmin):
# any ModelAdmin options

class Model2Admin(admin.TabularInline):# or admin.StackedInline
# any TabularInline options

class Model3Admin(admin..TabularInline):# or 
admin.StackedInline

# any TabularInline options


On 21/05/2012 7:26pm, Matt Schinckel wrote:

The admin.*Inline objects will not render nested inlines.

See https://code.djangoproject.com/ticket/9025

Matt.


As Matt pointed out the Model3 inline won't be nested. But you can 
un-indent it to the same level as the Model2 inline and both will be 
editable within the RootAdmin. I have done this previously and just 
assumed it would work at an extra level. I'll try to avoid that in future.


Mike

Actually, I meant to name the nested classes more appropriately as 
Model2Inline() and Model3Inline().


Then at the bottom of the admin.py file you need ...

admin.site.register(Root, RootAdmin)

... which includes the ModelxInlines because they are nested in your 
code.


Mike




... which ought to give you a nested view of Model2 when you examine 
Root in the admin and a nested view of Model3 inside Model2. You can 
use whatever options are listed in the docs (see below)  to control 
what happens when displaying records in the Admin app..


https://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-objects 



Mike





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



Inserting HTML5 Coordinates Into Django Form

2012-05-21 Thread DF
I'm wading – carefully – into some basic geolocation using HTML5. I 
currently have a meta form that has space for lat and long coordinates and 
have found the proper code to obtain those coordinates using the Google 
Maps API (pretty simple stuff).

Next step: inserting those coordinates automatically into the form. The 
application would ideally allow users to make posts and store their 
coordinates for future reference and filtering (this is a big endeavor one 
step at a time).

I haven't yet explored mixing JavaScript with Django in this manner and was 
looking to see if there's a straightforward manner for doing this. Any 
resources, experience or expertise on this would be greatly appreciated. In 
the end, for context's sake, I would like users to have the ability to 
search for localized posts via the map and have the posts corresponding to 
the area display on screen.

Thanks for any insight.

-- 
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/-/CkxAVz64tgQJ.
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: Trying to Edit Existing Post; Can't Get Form to Display

2012-05-21 Thread DF
Thanks for that insight. It's always good to reinforce best practices for 
newcomers like myself.

On Monday, May 21, 2012 7:47:33 AM UTC-4, bruno desthuilliers wrote:
>
> On May 19, 5:41 pm, Jonathan Baker  
> wrote: 
>
> Just a note about best practises: 
>
> > 
> > # views.py 
>
> (snip) 
>
> > return HttpResponseRedirect("/report/all/") 
>
> Better to use named urls and django.core.urlresolvers.reverse, this 
> avoids quite a lot of pain and trouble when you have to change your 
> urls schemes. 
>
> My 2 cents...

-- 
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/-/cVBo6dUQIlkJ.
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: user.set_password('new password')

2012-05-21 Thread Timothy Makobu
And a method is a function only accessible through a class.


On Mon, May 21, 2012 at 3:39 PM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

> On May 19, 5:49 pm, Timothy Makobu 
> wrote:
> > user.save returns the function object,
>
> 
> actually it evals to a method object
> 
>
> ;)
>
> --
> 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: DB joining 3 tables in django admin, while searching on the primary table

2012-05-21 Thread Aditya Sriram M
Some one there can answer!? 

On Sunday, 20 May 2012 13:12:17 UTC+5:30, Aditya Sriram M wrote:
>
> Ooo.. Nice.
>
> Hmm.. I tried this but it failed? Can you pls correct me?
>
> def queryset(self, request):
> result = super(CustomerAdmin, 
> self).queryset(request).prefetch_related()
> return result
>
> and my 'display list' for customer admin is..
>
> list_display = ('get_user_name')
>
> where definition of 'get_user_name' is
>
> def get_user_name(self, obj):
> return u'%s %s %s' % (obj.customerid__first_name, 
> obj.customerid__middle_name, obj.customerid__last_name)
> get_user_name.short_description = 'User Name' 
>
> where 'first_name', 'middle_name' etc are properties of the 'User' model.
>
> Regards,
> Aditya
>
> On Sunday, 20 May 2012 07:12:54 UTC+5:30, Matt Schinckel wrote:
>>
>> You may be able to use prefetch_related to do what you want: it will all 
>> depend upon your model structure. select_related is easier, but only 
>> follows an fk in one direction.
>>
>> Matt.
>>
>> On Sunday, May 20, 2012 12:27:57 AM UTC+9:30, Aditya Sriram M wrote:
>>>
>>> Hi,
>>>
>>> again, my models are Customer, Users and Devices.
>>>
>>> I would like to search by Customer and retrieve all 'select_related' 
>>> rows of all the three models.
>>> Eg. like this..
>>>
>>> Customer1 User1 Device1
>>> Customer1 User1 Device2
>>> Customer1 User2 Device1
>>> Customer1 User2 Device2
>>> etc etc..
>>>
>>> Is this possible in Django? If so how?
>>>
>>

-- 
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/-/ONWogTOQ-D8J.
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: user.set_password('new password')

2012-05-21 Thread bruno desthuilliers
On May 19, 5:49 pm, Timothy Makobu 
wrote:
> user.save returns the function object,


actually it evals to a method object


;)

-- 
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: My context variables don't show in templates

2012-05-21 Thread bruno desthuilliers
On May 20, 12:29 am, Mohamed Turki  wrote:
>
> def home(request):
>     var = ""
>     n = None

Better to use readable names.

>     if request.method == u'GET':
>         GET = request.GET
>         if GET.has_key(u'name'):
>             n = GET[u'name']
>             try:
>                 user = UserProfile.objects.get(facebookId = n)

In most django code, "user" will refer to a
django.contrib.auth.models.User instance. "profile" might be a better
name here (law of the least surprise).

>                 user.is_active = True
>                 user.last_login = datetime.now()
>                 var = user.facebookId

so "var" == "n" == "user.facebookId". Uhuh... Using three different
names for the same object in the same scope is possibly not a great
idea when it comes to readability.

>                 user.save()
>
>                 print var
>
>                 #on log out
>                 if GET.has_key(u'logout'):
>                     print 'im logging out!'
>                     user = UserProfile.objects.get(facebookId = n)
>                     user.is_active = False
>                     user.last_login = datetime.now()
>                     user.save()
>
>             except:

_never ever_ use a bare except clause, unless it's followed by a
"raise" statement. The actual exception might be very different than
what you assume it is (for the record, sys.exit() raise a SysExit
exception...)



>                 user = UserProfile(facebookId=n,playedHours=0,
> is_active=True)
>                 user.save()

Ok, so what if

1/ request.method != "GET"
2/ "name" not in request.GET
3/ any expected or unexpected exception sent you in the exception
handler ?

>     print var
>     context  = {'nom':var}

FWIW, Django's template system is smart enough to handle attribute
lookup. In practice you'd be better to populate your context with your
UserProfile instance...

>     return
> render_to_response('home.html',context,context_instance=RequestContext(request))
>
> and in my template I have something as simple as :
>
> {{ nom }}
>
> However, when I replace *var* with a "bla bla bla" for example, it shows on
> my template, but when I pass a variable name

What do you mean by "variable name" ???

> to the
> context, it doesn't show ! I also can see the *var* value on my console
> (notice i'm using print twice or thrice in the code)

Indeed - but possibly not in the most effective way. You'd have more
infos adding print statements in each and every branch giving clear
indications about what part of the code you're in ATM. A mere "print
var" will only output an empty line if var == "", so you can easily
miss it.


>
> am I doing anything wrong here?

Well, quite a few things yes ;)

... but if your last print statement shows the expected value, then
there's no reason (at the python / django level) it shouldn't show up
in your template.

To make sure your context is what you expect it to be, add a

   print "context : %s" % context

line just before the return statement.

-- 
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 forms - overriding constructor for changing field type depending by input

2012-05-21 Thread bruno desthuilliers


On May 20, 5:28 pm, luke lukes  wrote:
> thanks Paul and DR, your solution worked. anyway now i have a problem with
> the validation of that form (her's the view):


(snip)

Sorry, your code's indentation get messed up so it's hard to tell
where the problem ise exactly. Please post a link to dpaste or
something similar...

Oh and yes, just in case : wrt/ the form, Paul and Daniel are right
about the assignment to self.fields[fieldname], but you also need to
call the parent's __init__ before.

-- 
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: Where are the women?

2012-05-21 Thread Daniele Procida
On Tue, Apr 24, 2012, Daniele Procida  wrote:

> -
>and then I had a closer look at the names of this year's speakers.
>
>There are *two* women out of the 24 or so speakers listed, and only one
>is doing a solo talk.

An update - the keynote speakers have all been announced now, and two of the 
three are women:

Jessica McKellar 

 is a Python Software Foundation board member and a maintainer of several 
important open source Python projects.

Karen Tracey 

 is a core Django developer and author of Django Testing and Debugging.

which is really excellent and certainly helps address the imbalance.

Two weeks to go!

Daniele

-- 
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: Nested Foreign Key relationships in Admin?

2012-05-21 Thread Matt Schinckel
The admin.*Inline objects will not render nested inlines.

See https://code.djangoproject.com/ticket/9025

Matt.

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



Links between App and Docs

2012-05-21 Thread Thomas Guettler

Is there already a prefered django way to link between the application and it's 
documentation?

I have documentation for users of an application written in sphinx. Up to now the documentation are static HTML pages 
which can be accessed by the user.


I want to create link between the app and the documentation. Of course I could do it with fragile  links, 
but I would like to use reverse() to link from sphinx to a view and a sphinx-reference to link from the app to the 
documentation.


I want to keep the documentation in revision control in the file system (not in 
the database).

How do you do this?

Reated:
http://stackoverflow.com/questions/10512971/links-between-documentation-sphinx-and-django-app

http://sphinx.pocoo.org/latest/ext/intersphinx.html

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

--
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: where do you host your django app and how to you deploy it?!

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 13:18 +0100, Cal Leeming [Simplicity Media Ltd]
wrote:
> On top of this, I am yet to come across a decent django specific host
> (there's plenty out there, but none that I would consider recommending
> at
> this time). 

not even webfaction?
-- 
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.



Re: Django graphical query interface?

2012-05-21 Thread Derek
I also have searched for such a beast in the past...

The only one I have found recently that might be close is:
http://plugins.jquery.com/project/SQL_QUERY_BUILDER
(This site is down now - look at the archived view:
http://web.archive.org/web/20100212131706/http://plugins.jquery.com/project/SQL_QUERY_BUILDER_

Would obviously need much more work ito plugging into the admin site
(although most Django developers would recommend against hacking the
admin to this extent - you would be better off with your own custom
interface)

On May 19, 7:19 pm, Lee  wrote:
> I'm in need of a graphical query interface for my Django app, similar
> to what OpenOffice Base and MS Access provide. Ideally it would allow
> the user to select a Django Admin action to perform on the returned
> results, or drill into the related records. I struck out with google
> and Django Packages. Anyone know of such a beast or have any
> suggestions?

-- 
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: Add Language menu in Admin

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 09:19 +0200, BadStorm wrote:
> I want to add a language value to my model, to permit to user the 
> ability to add content in different languages that I configurated in
> the 
> setting.py. 

try out djangomodeltranslation
-- 
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.



Re: django on jb ipad

2012-05-21 Thread Derek
I'm not an iPad user, but I see you can install Python from iTunes:
http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8
(BTW, SQLite library and the pysqlite language binding are built into
Python)
I'm assuming you can then install and run normal Python modules (of
which Django is one)...

On May 19, 7:28 pm, hone5t  wrote:
> greetings
> i have ipad 2 and i donwload both python,sqlite3 and lightpd and wonder if
> i can run django on it or not

-- 
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: Visibility images/css from another directories

2012-05-21 Thread Stone
No the URLs are different and storage on the filesystem is also
different.
E.g.
URL /public/js/.. are stored on /opt/public/htdocs
URL /common/js/.. are stored on /opt/common/htdocs
URL appl application /appl/js is stored on /opt/appl/htdocs/media/js/
(Django)
In the development case I can copy that images to the development
server.
This is not a problem.

In the real state the page will be run over mod_python module.
The page written in Django is now only the one and other applications
are written in Perl/CGI/HTML
All web applications are run over standard apache2 2.2.22
On that web server there are two locations were are CSS/JS/images.

The another application written in Perl is located here: /opt/diagnose/
htdocs (URL /diag/..)
And both application as Django as diagnose used the sema web server.

My question is if there is any possibility to share images between /
common/js and /appl/js

Thank you in advance

Petr
On 17 kvě, 14:16, Ilian Iliev  wrote:
> This is a bit more general than a Django issue.
>
> Are both css directories going to be server under the same URL?
> What will happend if both of them contain files with the same name?
> Are you using staticfiles?
>
> And more important why do you have these files out of the project, what is
> the reason
> to load them from separate directory instead from the project?
>
> --
> eng. Ilian Iliev
> Web Software Developer
>
> Mobile: +359 88 66 08 400
> Website:http://ilian.i-n-i.org
>
>
>
>
>
>
>
> On Thu, May 17, 2012 at 1:50 PM, Stone  wrote:
> > Sorry,
> > now I have only the dev one for the moment,
> > but for real usage I will have apache2-2.2.22
>
> > Best reagards
> > Petr
>
> > On 17 kvě, 12:01, Ilian Iliev  wrote:
> > > Hi,
>
> > > can you add some more details. Are you using web server or you have only
> > > the dev one for the moment. If you have web server what is it: Apache,
> > > NginX etc.?
>
> > > Best wishes,
> > > Ilian Iliev
>
> > > --
> > > eng. Ilian Iliev
> > > Web Software Developer
>
> > > Mobile: +359 88 66 08 400
> > > Website:http://ilian.i-n-i.org
>
> > > On Thu, May 17, 2012 at 11:06 AM, Stone  wrote:
> > > > Dear users,
>
> > > > I have a some simple question.
> > > > Let's say that my project (dJango) is stored on the file system here:
> > > > /opt/appl/htdocs
> > > > and media files are stored here:
> > > > /opt/appl/htdocs/media/css
> > > > /opt/appl/htdocs/media/images
>
> > > > All CSS and images are visible under directory /opt/appl/htdocs w/o
> > > > problem.
>
> > > > Another images and css are stored here:
> > > > /opt/common/htdocs/media/css
> > > > /opt/common/htdocs/media/images
>
> > > > Is there any way how to visible in dJango all CSS and images
> > > > from directory /opt/common/htdocs/...?>
>
> > > > Thank you in advance
> > > > Petr
>
> > > > --
> > > > 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.