instead this:
MEDIA_URL = os.path.realpath(PROJECT_PATH + '/media/')
try:
MEDIA_URL = '/media/'
2010/11/5 Sithembewena Lloyd Dube
> Update: I added AVATAR_STORAGE_DIR = MEDIA_ROOT to my settings.py file.
>
> When I load the page, the avatar's src is
> "C:/Websites/TPFRepository/projectname/media
Cool! =)
2012/2/16 victoria
> I just wanted to let you know that we have also released a new version
> of BitNami DjangoStack 1.4b1 which bundles Django 1.4b1. I hope that
> will make easier to test this new version without conflicting with
> your current stable environment.
>
> http://bitnami.o
Great! \,,/_
2012/3/23 James Bennett
> Django 1.4 is finally here!
>
> For details, checkout the weblog:
>
> https://www.djangoproject.com/weblog/2012/mar/23/14/
>
> And the release notes:
>
> https://docs.djangoproject.com/en/dev/releases/1.4/
>
> --
> You received this message because you are
What's your database backend?
https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.distinct
Note
This ability to specify field names is only available in PostgreSQL.
[]s
2012/6/24 Marcin Tustin
> DISTINCT ON fields is not supported by this database bac
http://www.djangopackages.com/ out?
--
Att. *Mário Araújo Chaves Neto*
*Programmer, Designer and U.I. Engineer*
*
*
*MBA in Design Digital* - 2008 - FIC
*Analysis and Systems Development* - 2011 - Estácio
*D**esign and Implementation of Internet Environments* - 2003 - FIC
--
You received this m
ss Magee %-)
>
> On Fri, Aug 10, 2012 at 7:43 PM, Mário Neto wrote:
> > http://www.djangopackages.com/ out?
> >
> > --
> > Att. Mário Araújo Chaves Neto
> > Programmer, Designer and U.I. Engineer
> >
> > MBA in Design Digital - 2008 - FIC
> &g
Amazing! Good work! :)
2012/10/30 Tom Christie
> Hi all,
>
> I'm incredibly pleased to announce the release of Django REST framework 2.
>
> REST framework 2 is a comprehensive reworking of the original project.
> Because this is a major re-design, rather than an incremental release,
> we've skip
Great, very very good! \,,/_ Congratulations!!!
2011/12/23 James Bennett
> Tonight as part of the 1.4 development process, we've released the
> first alpha for Django 1.4. You can read all about it on the blog:
>
> https://www.djangoproject.com/weblog/2011/dec/22/14-alpha-1/
>
> And in the relea
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#firstof
2011/12/28 Nikhil Verma
> Go to this link
>
> https://docs.djangoproject.com/en/dev/ref/templates/builtins/
>
> {% if athlete_list %}
>
> Number of athletes: {{ athlete_list|length }}
> *{% elif athlete_in_locker_room_list
Happy new year from Brasil to all djangonautics of the world.
Many django projects for all!
Best regards.
2012/12/31 Ariel Calzada
> Happy new year from Colombia
> El 31/12/2012 16:42, escribió:
>
> Happy new year from spain to all django lovers.
>> I wish you a new year with tons of django p
And trying like this:
>>> PROJECT_PATH = os.path.abspath(os.path.dirname(__name__))
>>> PROJECT_PATH
'C:\\Users\\Mario'
>>> os.path.join(os.path.dirname(PROJECT_PATH), "..")
'C:\\Users\\..'
Best regards
2013/1/11 frocco
> PROJECT_PATH = os.path.join(os.path.dirname(__file__))
>
--
Att. *M
Very good! Ezequiel =]
2013/1/15 Ezequiel Bertti
> Try this:
> http://tree.io/
>
>
> On Tue, Jan 15, 2013 at 7:05 PM, scaphilo wrote:
>
>> Hi
>> Well this thread is a bit outdated but as you have not had any answers
>> yet.
>>
>> Insted of starting from scratch you could perhaps start with
>> w
Thank's Jacob!
2013/1/29 kl4us
> nice one, i'm new on django and i'm reading documentation all day
>
> Il giorno martedì 29 gennaio 2013 18:11:48 UTC+1, Jacob Kaplan-Moss ha
> scritto:
>
>> Hey folks --
>>
>> MediaTemple, our hosting provider for djangoproject.com, is going to
>> be taking our
Very good Alexey,
Congratulations!
=)
2013/3/12 Tomas Ehrlich
> Hi Alex,
> congratulation to alpha release of your app.
>
> I was about to suggest you django-bootstrap-admin, django-admin-tools
> and django-fluent-dashboard, but since you already know Admin tools,
> could you please provide mor
Do you can this in your template
2013/5/28 Victor
> As a newbye I'm happily using admin.
>
> Now I would like to select what a user can see in the admin main page
> according to its username just as a (non-working) example I would like to
> follow this idea
>
> in admin.py
>
> if request.user==
A path to follow:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
2013/7/17 Rurangwa Moses
> Hey guys,
> I need some help on how to customize a django admin page to whole new
> different look rather than the default django admin page
>
> Thanks
>
> --
> You r
Hi, you can separate your querysets in get_context_data method.
See:
https://docs.djangoproject.com/en/dev/ref/class-based-views/mixins-simple/#django.views.generic.base.ContextMixin.get_context_data
2013/7/22 Pepsodent Cola
> Hi,
>
> Can I only have one "get_queryset" for each Viewpage?
> If I
Exactly @Babatundle =)
2013/7/23 Babatunde Akinyanmi
> Override your get method but it's easier to override the get_context_data
> method like
> # From my head
> def get_context_data(**kwargs):
> context = super(IndexView, self).get_context_data(**kwargs)
> #filter1 is already present a
Suggestion:
*Install Unipath with a:*
$ pip install Unipath
*and in settings file:*
from unipath import Path
PROJECT_DIR = Path(__file__).parent
STATIC_ROOT = PROJECT_DIR.child('static')
*Try in urls.py*
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import sta
Paste your code in http://dpaste.com and share the link in this group
Em 22/08/2013 12:42, "Gerd Koetje" escreveu:
> In many posts i submit django code.
> I tried to use the < c o d e > < / c o d e > tag but it doesnt format it
> very nicely
> Is there a other tags to use?
>
> --
> You received
Thanks for all! =)
2013/11/6 wudiweb
> Thanks for all contributors
>
> 在 2013年11月6日星期三UTC+8下午11时09分45秒,James Bennett写道:
>
>> Django 1.6 and Django 1.4.10 are out today; the latter is a bugfix
>> release to restore Python 2.5 compatibility in the 1.4 series.
>>
>> Full details are in the blog po
a detail,
put only:
urlpatterns += staticfiles_urlpatterns()
instead:
if settings.DEBUG:
urlpatterns += staticfiles_urlpatterns()
The django treat this in URLConf.
2011/5/18 Kevin Monceaux
> On Wed, May 18, 2011 at 03:03:42PM -0500, Kevin Monceaux wrote:
>
> > to:
> >
> >return render(
Dev.
Mac OS X
PyCharm
Virtualenv
pip
Mercurial (Bitbucket)
debug-toolbar and extensions
Prod. 1
RedHat
Apache
mod_wsgi
Prod. 2
Debian
Cherokee
uwsgi
2011/6/7 Xavier Ordoquy
> Hi,
>
> > Xavier, could you point to any resources about using buildout with
> Django, virtualenv and pip? I'm assumin
For that you could use the method select_related, if you want the details
page has executives related to the nonprofit:
e = Executive.objects.select_related().get(pk=id)
Thus, there is a performance gain, it does not require database queries.
2010/12/21 Matt
> I have two classes in my model: n
24 matches
Mail list logo