Hi to all,
Just wan't to ask if its possible.
at helper.py
def myfunc():
blah blah blah
and then in views.py
def myview1():
myfunc()
def myview2():
myfunc()
my question is how can i get the caller function from myfunc().
i'm a newbie at python django so i hope you can help me.
T
.3 release. So I guess the question is if there's any kind of
workaround at the moment?
Thanks,
CJ
~/www$ python3 manage.py syncdb
Traceback (most recent call last):
File
"/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py",
line 14, in
i
That package installs into my python directory but not python3. I'm
currently trying to get Django 1.5 to work with python3. Are there other
ways currently to get mysql to work with django and the python3 environment?
Try this :
> sudo apt-get install python-mysqldb
>
> --
> Sandeep Kaur
ok, so what needs to happen here? Do I need to recode
/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py
to use this new module?
On Sunday, November 18, 2012 4:57:02 PM UTC-5, iƱigo medina wrote:
>
>
> On Sat, 17 Nov 2012, Cj Taylor wrote:
>
> > That pac
upport ?
>
> 2012/11/20 Cj Taylor >:
> > ok, so what needs to happen here? Do I need to recode
> > /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py
> to
> > use this new module?
> >
> >
> > On Sunday, November 18, 201
Have you ran
$ manage.py collectstatic
On Thursday, April 4, 2013 12:49:11 AM UTC-7, Vibhu Rishi wrote:
>
> I am not sure where I am going wrong, but the CSS files are just not
> getting picked up. I have just started a project and am using the dev
> server with the runserver command.
>
> Her
Not sure if this is the direction you are looking to go but I have had
great luck using
http://sorl-thumbnail.readthedocs.org/en/latest/examples.html
You do your template cropping in the template, This does require you to
setup a caching server.
Hope this helps!
On Thursday, April 4, 2013
On Sunday, May 20, 2007 11:51:49 AM UTC-5, Malcolm Tredinnick wrote:
>
> Have a look in django/db/models/loading.py . There are a number of
> useful methods in there. In particular, get_apps(), which contrary to
> what you claim above, should give you all installed apps, not installed
> models (y
On Saturday, August 30, 2014 6:02:57 PM UTC-5, Collin Anderson wrote:
>
> The soon-to-be-released version 1.7 has a documented API for accessing all
> models and apps:
>
> https://docs.djangoproject.com/en/1.7/ref/applications/
>
That's awesome, I'll be on the lookout for it.
--
You received t
9 matches
Mail list logo