Hi All,
I have created a bitbucket and some folders inside that with following
path: my_bucket\merchant\logos\
I am trying to upload a image file inside the my_bucket\merchant\logos
folder but it is saving inside the my-merchant folder instead of logos.
PFB my code snippet-
config.json-
{
"A
I think I'm adding the directories to sys.path correctly. For example,
in my wsgi file, this works:
path = '/home/devon/django-projects/'
if path not in sys.path:
sys.path.append(path)
...but if I change the path value like this, then Apache gives a 500
server error:
path = '/home/devon/code
Check if the base directory is added in you current python path when running
from wsgi
Putting a line like "print >> sys.stderr, sys.path" in your wsgi file right
after the initial import should let you verify that.
On Sat, Jul 30, 2011 at 1:25 AM, Devon Young wrote:
> I apologize in advance i
It's your PYTHONPATH environment variable.
--
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.c
I apologize in advance if this is actually a stupid question, but I'm
thoroughly stumped since yesterday about this.
First, it should be noted I come from a PHP background with a little
experience in Perl, and I'm learning Python since Sunday. Also, I'm
using:
Python 2.7
Apache 2 (with mod_wsgi)
Thanks Ken.
On Mon, Oct 18, 2010 at 2:44 PM, Kenneth Gonsalves wrote:
> On Mon, 2010-10-18 at 14:34 +0200, Sithembewena Lloyd Dube wrote:
> > Just manage.py , instead of always having to specify the
> > program to
> > run the command with (python).
>
> anyway you got the answer - chmod
> --
> reg
On Mon, 2010-10-18 at 14:34 +0200, Sithembewena Lloyd Dube wrote:
> Just manage.py , instead of always having to specify the
> program to
> run the command with (python).
anyway you got the answer - chmod
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to t
Hi Ken,
Just manage.py , instead of always having to specify the program to
run the command with (python).
On Mon, Oct 18, 2010 at 7:25 AM, Kenneth Gonsalves wrote:
> On Sun, 2010-10-17 at 23:00 +0200, Sithembewena Lloyd Dube wrote:
> > How would I set up my path so that I don't always have to
On Sun, 2010-10-17 at 23:00 +0200, Sithembewena Lloyd Dube wrote:
> How would I set up my path so that I don't always have to type
> 'python
> manage.py '? On Windows, I would add the directory containing
> the
> python file to my system path. How can I do this on Linux?Am working
> on
> Ubuntu 10
Ah - thanks Sam! Why didn't I think of chmod?
On Sun, Oct 17, 2010 at 11:35 PM, Sam Lai wrote:
> Python should already by in your PATH when you installed the package
> from the Ubuntu repositories.
>
> I think your issue is that your manage.py is not executable. In the
> directory containing m
Python should already by in your PATH when you installed the package
from the Ubuntu repositories.
I think your issue is that your manage.py is not executable. In the
directory containing manage.py, type
chmod u+x manage.py
Then you should be able to just type ./manage.py
On 18 October 2010 08
Hi all,
How would I set up my path so that I don't always have to type 'python
manage.py '? On Windows, I would add the directory containing the
python file to my system path. How can I do this on Linux?Am working on
Ubuntu 10.04. Thanks.
--
Regards,
Sithembewena Lloyd Dube
http://www.lloyddube
Or you can add it to sys.path in your settings.py file.
On Wed, Sep 22, 2010 at 10:43 AM, Shawn Milochik wrote:
> It's probably your PYTHONPATH.
>
> Check the result of:
>
> echo $PYTHONPATH
>
> I'm guessing that your apps directory is not in the path. If not, you can add
> it to your path.
>
>
It's probably your PYTHONPATH.
Check the result of:
echo $PYTHONPATH
I'm guessing that your apps directory is not in the path. If not, you can add
it to your path.
export PYTHONPATH=yourdirectory:$PYTHONPATH
--
You received this message because you are subscribed to the Google Groups
"Djan
I am trying to run my apps from 'apps' folder
and have 'apps.registration' installed apps/settings.py
but the admin.py is having some problem with the path and I get error
in admin:
ImportError at /admin
No module named registration.models
Request Method: GET
Request URL: http://devhead.alwaysd
Thanks Nuno this fixed the issue.
On 02/06/2010 12:17 م, Nuno Maltez wrote:
Well, if you're trying to render a template : "posts/post_list.html",
the post_list.html file should live inside "posts" directory inside of
your "templates" directory :
templates/posts/post_list.html
Don't mix html an
Well, if you're trying to render a template : "posts/post_list.html",
the post_list.html file should live inside "posts" directory inside of
your "templates" directory :
templates/posts/post_list.html
Don't mix html and python files in the same dir.
Nuno
On Wed, Jun 2, 2010 at 4:44 AM, M. Bash
d 2.6 installed on a MacBook running 10.6.3.
>>
>>>> I did everything the installation guide told me, but after typing:
>>
>>>> python manage.py runserver
>>
>>>> I get this error:
>>
>>>> File "manage.py", lin
manage.py runserver
>
> > > I get this error:
>
> > > File "manage.py", line 2, in
> > > from django.core.management import execute_manager
> > > ImportError: No module named django.core.management
>
> > > I believe the solution wo
e 2, in
> > from django.core.management import execute_manager
> > ImportError: No module named django.core.management
>
> > I believe the solution would be this comment on the installation
> > site:
>
> > To avoid a command not found issue with Snow Leop
10.6.2 and
> various other OSX (Django installed using MacPorts?) here a tip that
> might help. There might be a $PATH issue. Adding the proper PATH to
> ~/.Profile: export PATH=/opt/local/bin:opt/local/sbin:/opt/local/lib/
> python2.4/site-packages/django/bin:$PATH should help. NB Could
a tip that
might help. There might be a $PATH issue. Adding the proper PATH to
~/.Profile: export PATH=/opt/local/bin:opt/local/sbin:/opt/local/lib/
python2.4/site-packages/django/bin:$PATH should help. NB Could be that
one needs to change the Python version in the PATH.
But I dont now what a $PATH is
Hi Wendy, sorry for the delay.
On 23 aug, 04:43, zignorp wrote:
> Then in the admin.py file for films, which lives inside of mysite, I
> added the media subclass, which I was told to do by some other helpful
> person on the list, I used the absolute path, on my mac, which is the
> one that sho
Thanks for replying, Joost,
I tried changing my settings to mirror the settings of someone else in
a previous tiny mce post:
So I moved the files. In the "mycode" directory, which contains my
project "mysite" dir, as well as one I created called "static_media"
which has js/tiny_mce, etc. in tha
Hi Wendy,
On 20 aug, 20:29, zignorp wrote:
> MEDIA_ROOT = '/Users/...media/'
>
> MEDIA_URL = '/Users/...media/'
> (I had to change this to get it to write the path below, before it was
> looking for tinymce in my project directory)
>
> ADMIN_MEDIA_PREFIX = '/media/'
Your MEDIA_URL looks strang
Hello,
I am working on the development server. I am still trying to wrap my
head around MEDIA_ROOT, MEDIA_URL, and get an idea of best practices.
I'm trying to implement tinymce in the admin, and I'm having a path
issue.
I put tinymce in my project folder (django-tinymce 1.5)
an
From your apache config:
> PythonPath "['/var/www/webapps/django_project','/var/www/lib/
> python2.5'] + sys.path"
This says that python should look in these directories for modules.
> from django_project.apps.myapp.models import ModelOne,
> ModelTwo, ModelThree
This tries to import a module
Hey -
I'm coming from a c background into this - more or less a newbie to
the python/django environment.
That said - I have an issue with paths and mod_python that I can't
seem to resolve.
I have the following directory structure
django_project/
__init.py__
manage.py , etc
This path issue is really frustrating me. I've tried everything i can
think of. I'm trying to use the fckeditor module for drupal ...
INSTALLED_APPS = (
'django.contrib.auth'
'django.contrib.contenttypes',
'django.contrib.s
This path issue is really frustrating me. I've tried everything i can
think of. I'm trying to use the fckeditor module for drupal ...
INSTALLED_APPS = (
'django.contrib.auth'
'django.contrib.contenttypes',
'django.contrib.s
This path issue is really frustrating me. I've tried everything i can
think of. I'm trying to use the fckeditor module for drupal ...
INSTALLED_APPS = (
'django.contrib.auth'
'django.contrib.contenttypes',
'django.contrib.s
31 matches
Mail list logo