facing aws s3 image file path issue?

2018-06-18 Thread prateek gupta
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

Re: Mysterious Path Issue Django & Apache

2011-07-29 Thread Devon Young
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

Re: Mysterious Path Issue Django & Apache

2011-07-29 Thread Subhranath Chunder
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

Re: Mysterious Path Issue Django & Apache

2011-07-29 Thread Shawn Milochik
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

Mysterious Path Issue Django & Apache

2011-07-29 Thread Devon Young
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)

Re: Path issue on Linux

2010-10-19 Thread Sithembewena Lloyd Dube
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

Re: Path issue on Linux

2010-10-18 Thread Kenneth Gonsalves
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

Re: Path issue on Linux

2010-10-18 Thread Sithembewena Lloyd Dube
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

Re: Path issue on Linux

2010-10-17 Thread Kenneth Gonsalves
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

Re: Path issue on Linux

2010-10-17 Thread Sithembewena Lloyd Dube
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

Re: Path issue on Linux

2010-10-17 Thread Sam Lai
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

Path issue on Linux

2010-10-17 Thread Sithembewena Lloyd Dube
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

Re: help setting 'apps' folder... path issue

2010-09-22 Thread Bill Freeman
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. > >

Re: help setting 'apps' folder... path issue

2010-09-22 Thread Shawn Milochik
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

help setting 'apps' folder... path issue

2010-09-22 Thread justin jools
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

Re:[SOLVED] Path issue (TemplateDoesNotExist)

2010-06-02 Thread M. Bashir Al-Noimi
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

Re: Path issue (TemplateDoesNotExist)

2010-06-02 Thread Nuno Maltez
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

Re: MacPorts installation, Django $PATH issue

2010-05-11 Thread Walter Scheper
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

Re: MacPorts installation, Django $PATH issue

2010-05-10 Thread HelloWorld
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

Re: MacPorts installation, Django $PATH issue

2010-05-10 Thread HelloWorld
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

Re: MacPorts installation, Django $PATH issue

2010-05-06 Thread backdoc
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

MacPorts installation, Django $PATH issue

2010-05-06 Thread HelloWorld
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

Re: Path issue with tinymce and MEDIA_ROOT

2009-08-26 Thread Joost Cassee
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

Re: Path issue with tinymce and MEDIA_ROOT

2009-08-22 Thread zignorp
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

Re: Path issue with tinymce and MEDIA_ROOT

2009-08-21 Thread Joost Cassee
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

Path issue with tinymce and MEDIA_ROOT

2009-08-20 Thread zignorp
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

Re: path issue

2008-11-24 Thread Tim Chase
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

path issue

2008-11-24 Thread [EMAIL PROTECTED]
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

Simple path issue ?

2008-07-25 Thread dbee
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

Simple path issue ?

2008-07-25 Thread dbee
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

Simple path issue ?

2008-07-25 Thread dbee
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