Thanks Collin for sharing your "hacky" solution. It does indeed work. It's
not as neat as a proper redirect to the parent category, but I don't have
the django skills to come up with something better. Hopefully someone will
chime in with a better solution. Meanwhile, I'm adopting your trick. Tha
>
> >>> from polls.model import Poll, Choice
>>> from polls.model*s* import Poll, Choice
--
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.
Ahh yes, I have this exact same problem. Here's my current, hacky solution:
class ActivePersonAdmin(PersonAdmin):
def get_queryset(self, request):
if request.path == '/admin/app/activeperson/': # HACK
return Person.objects.filter(active=True) # filtered
changelist page q
Hi there,
I am using a model proxy to separate model entities into two categories in
the admin (more precisely, to separate "active persons" from all persons).
The separation of whether a person model belongs to the "active" category
is based on a status field in the model.
The problem I am fa
Ramiro Morales
@ramiromorales
On Aug 9, 2014 7:13 PM, "Daniel Grace" wrote:
>
> I get an error in the shell when following the tutorial
> https://docs.djangoproject.com/en/1.6/intro/tutorial01/
>
> C:\Users\Daniel\My Documents\Python\DjangoTest\mysite>python manage.py
shell
> Python 3.4.0 (v3.4.0:
I get an error in the shell when following the tutorial
https://docs.djangoproject.com/en/1.6/intro/tutorial01/
C:\Users\Daniel\My Documents\Python\DjangoTest\mysite>python manage.py shell
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64
bit (AM
D64)] on win32
Type "help",
I get an error in the shell when following the tutorial
https://docs.djangoproject.com/en/1.6/intro/tutorial01/
C:\Users\Daniel\My Documents\Python\DjangoTest\mysite>python manage.py shell
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64
bit (AM
D64)] on win32
Type "help",
I am following the tutorial
at https://docs.djangoproject.com/en/1.6/intro/tutorial01/
I typed in the command: python manage.py sql polls
but there were no messages, and I did not get the create statements that
are mentioned in the tutorial.
I'm not sure what is going on.
--
You received this m
Imports are cached, so only the first "import x" or import_module("x")
will run the code and generate a "module" object that gets cached in
sys.modules(?). Using "import" again will just return the same module
object from sys.modules. You can verify with a print statement in a
module that code only
Hi
getting into web development from a C, C++ (non web).
I read and understand quite well the django framework code... but I cannot
grasp yet the object life cycle.
I follow the WSGIHandler and BaseHandler, and seemed to me that at every
single reuqest, the urls is imported, and in that the adm
the first one returns: *No such file or directory*
the second one: *Not recognised as a command* (my translation from Polish)
This worked before (a week ago):
django-admin.py startproject mysite
But then I deleted the whole mysite folder (cause of some problems) and
started all over again. Now
This might also work, without the .py:
django-admin startproject mysite
--
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.co
Try this:
python django-admin.py startproject mysite
--
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
>
> templates
>
>1.
>
> should be :
> settings.py
>
>
>1. MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
>2. MEDIA_URL = 'http://www.127.0.0.1:8000/media/'
>
> You may have better luck with this simpler MEDIA_URL:
MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
according to the official tutorial I need to type the following to the cmd
in the directory where I want to create my project.:
django-admin.py startproject mysite
I created a folder named "site" on my desktop, cd into it and typed the
obove command. Nothing appeared in "site". Instead, Python
Hello!
Maybe this "how to" help you!
http://teago.futuria.com.br/tip/instalando-modulo-wsgi-no-apache-2-com-django-14/
Tiago
On Thursday, August 7, 2014 3:01:47 PM UTC-3, ngangsia akumbo wrote:
>
> nano bluepearlhotel.wsgi
>
>
> import os
> import sys
> sys.path = ['/var/www/bluepearlhotel'] + s
This year the PYBR will be "FODA". \o
2014-08-09 15:30 GMT+01:00 Renato Oliveira :
> Hi all,
>
> You have until tomorrow to submit your talk to Python Brasil [10].
>
> http://2014.pythonbrasil.org.br/dashboard/proposals/
>
> The conference will be amazing! See why:
>
> Our Keynotes -> http://201
Hi all,
You have until tomorrow to submit your talk to Python Brasil [10].
http://2014.pythonbrasil.org.br/dashboard/proposals/
The conference will be amazing! See why:
Our Keynotes -> http://2014.pythonbrasil.org.br/speakers/
Our Venue -> http://2014.pythonbrasil.org.br/news/the-conference-ve
I would go with Python 3, string handling is much better and the library layout
is a little more rational. I am stuck with 2.7 for the websites I develop but I
have been using 3 for the attending scripts with no issues. If you do decide to
go with 2.7 I would add the following to each file to ma
I have been having problem uploading image from admin and for it to deplay
on the page
Here is my config
templates
1.
settings.py
1. MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
2. MEDIA_URL = 'http://www.127.0.0.1:8000/media/'
models.py
- image
If I stick to Python 2.7, I start off with a host of Unicode issues--not a
promising way to start a site that relies on Unicode, Middle Eastern
character sets, and bidi functionality. I hate the last-century, Python 2
ways of dealing with those. That makes no sense, barring something more
compellin
i have two probe so far uploading images and hosting on apache
those are the probes i face now, my images dont show up on the templates
i am suing django 1.4
On Friday, August 8, 2014 4:29:45 PM UTC+1, ngangsia akumbo wrote:
>
> is there an easier way to host your django website for testing
>
>
stick to python 2.7
collins anderson can i meet u on skype? mine is
skype: ngangsi.richard
On Friday, August 8, 2014 11:53:30 PM UTC+1, Collin Anderson wrote:
>
> I'd start with 1.7 as it should be more friendly to newcomers. There will
> be another release candidate soon and the final vers
can some one refee to me a good guide that can properly explain a step by
step guide on how to upload images in module and view them on the template.
The django documentation does not explicitly explain that section well
i am using django 1.4
--
You received this message because you are subsc
24 matches
Mail list logo