Re: Can upload a directory structure as file upload using django?

2020-04-08 Thread Andréas Kühne
krev Ashok Sharma < ashok.connectglo...@gmail.com>: > Hi All, > > I want to upload a directory structure from remote server same as we are > uploading any file or image. > > Please have a look and share me any reference. > > Thanks > > -- > You received this

Can upload a directory structure as file upload using django?

2020-04-07 Thread Ashok Sharma
Hi All, I want to upload a directory structure from remote server same as we are uploading any file or image. Please have a look and share me any reference. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: I'm struggling with Django's view directory structure.

2020-01-08 Thread Scot Hacker
m struggling with Django's view directory structure. > Now, I am creating an app with the following URL structure. > > > domain / app / page_category1 / action1 > domain / app / page_category1 / action2 > ... > domain / app / page_categoryN / actionM > > > I

I'm struggling with Django's view directory structure.

2020-01-07 Thread 片岡一平
Hi, I'm struggling with Django's view directory structure. Now, I am creating an app with the following URL structure. domain / app / page_category1 / action1 domain / app / page_category1 / action2 ... domain / app / page_categoryN / actionM In this case, how should the D

Django test command fail after changing models.py to a directory structure

2019-01-10 Thread Gonzalo Amadio
, installed apps i have the app as: 'myproject.apps.posts.apps.PostsConfig' My app config (posts/apps.py) from django.apps import AppConfigclass PostsConfig(AppConfig): name = 'posts' verbose_name = 'posts' I have move posts/models.py

Help with directory structure of the project

2013-09-17 Thread Ladislav Prokopny
Hi, I have quite big problems with having the directory structure with correct hierarchy and I decided to stop the development unless I will have it good. I have order, customers, users . So what I have is: myproj |-myproj |-web_app |---orders (with views.py, ajax.py

Re: Directory structure issue.

2011-06-26 Thread Cal Leeming [Simplicity Media Ltd]
Also, check what your sys.path is. It could be that you actually need to do: INSTALLED_APPS = ( 'core.app1', ) Or ('app1',) Sometimes the path can get screwed up depending on the loading mechanism used. Cal On 26 Jun 2011 14:11, "bruno desthuilliers" wrote: -- You received this message beca

Re: Directory structure issue.

2011-06-26 Thread bruno desthuilliers
On Jun 26, 12:18 am, Frederico Betting wrote: > Hi All > > I am beginner in using django framework and I'm trying to do a project with > a different directory structure but it's not working and I don't know what I > am doing wrong. > Follow an example for what I

Re: Directory structure issue.

2011-06-25 Thread Mike Dewhirst
On 26/06/2011 8:18am, Frederico Betting wrote: Hi All I am beginner in using django framework and I'm trying to do a project with a different directory structure but it's not working and I don't know what I am doing wrong. Follow an example for what I am doing: project `-- co

Directory structure issue.

2011-06-25 Thread Frederico Betting
Hi All I am beginner in using django framework and I'm trying to do a project with a different directory structure but it's not working and I don't know what I am doing wrong. Follow an example for what I am doing: project `-- core |-- app1 | |-- __init__.py

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-30 Thread Dan
On 30 Aug., 13:56, Daniel Roseman wrote: > In your lib/models/__init__.py, do `from FooModels import *` for each > model file. OK, that does the trick. When I import the models in lib/__init__.py they are being recognized by the manage.py script. I guess I could just look for *.py files in lib/mod

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-30 Thread Alex Robbins
If you define your models somewhere django doesn't expect, I think you need to add the app_label in the model's Meta class. http://docs.djangoproject.com/en/1.2/ref/models/options/#app-label They mention the models submodule use case in the docs. Hope that helps, Alex On Aug 30, 6:56 am, Daniel

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-30 Thread Daniel Roseman
On Aug 30, 7:46 am, Dan wrote: > On 30 Aug., 08:26, Kenneth Gonsalves wrote:> import > lib.models > > > from lib.models import * - you may get an error here > > Both commands work without giving any error messages. However they do > not actually import anything, since the models reside in sepera

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-29 Thread Dan
On 30 Aug., 08:26, Kenneth Gonsalves wrote: > import lib.models > > from lib.models import * - you may get an error here Both commands work without giving any error messages. However they do not actually import anything, since the models reside in seperate files in the models subdir and need to be

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-29 Thread Kenneth Gonsalves
On Mon, 2010-08-30 at 08:20 +0200, Daniel Klaffenbach wrote: > > The problem is that the manage.py script does not seem to be aware of > these models. I added "myproject.lib" to the INSTALLED_APPS section in > the settings file, but manage.py still cannot find any models. that is not possible. A

manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-29 Thread Daniel Klaffenbach
Hi, I am working on a pretty big application and somewhat changed the default directory structure a bit. I now have an app called "lib" in my project dir. This application contains two folders: "models" and "templatetags". The __init__.py files are present in all s

Re: question on directory structure for deploying project

2010-08-27 Thread Joel Klabo
bmp On Aug 26, 8:14 pm, Joel Klabo wrote: > Could someone just show me how theirs is set up? > > On Aug 26, 4:54 pm, Joel Klabo wrote: > > > > > > > > > It does have __init__.py, but not the server isn't seeing it... '500 > > internal server error' > > > On Aug 26, 4:48 pm, Kenneth Gonsalves wr

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
Could someone just show me how theirs is set up? On Aug 26, 4:54 pm, Joel Klabo wrote: > It does have __init__.py, but not the server isn't seeing it... '500 > internal server error' > > On Aug 26, 4:48 pm, Kenneth Gonsalves wrote: > > > > > On Thu, 2010-08-26 at 16:44 -0700, Joel Klabo wrote: >

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
It does have __init__.py, but not the server isn't seeing it... '500 internal server error' On Aug 26, 4:48 pm, Kenneth Gonsalves wrote: > On Thu, 2010-08-26 at 16:44 -0700, Joel Klabo wrote: > > also, when I change the virtual host path to: /srv/www/brooski.net > > (instead of /srv/www/brooski.n

Re: question on directory structure for deploying project

2010-08-26 Thread Kenneth Gonsalves
On Thu, 2010-08-26 at 16:44 -0700, Joel Klabo wrote: > also, when I change the virtual host path to: /srv/www/brooski.net > (instead of /srv/www/brooski.net/brooski/) I get an internal server > error. Whereas with '/srv/www/brooski.net/brooski/' I get the actual > django error page the questi

Re: question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
also, when I change the virtual host path to: /srv/www/brooski.net (instead of /srv/www/brooski.net/brooski/) I get an internal server error. Whereas with '/srv/www/brooski.net/brooski/' I get the actual django error page On Aug 26, 4:20 pm, Joel Klabo wrote: > on my VPS i have my project at:

question on directory structure for deploying project

2010-08-26 Thread Joel Klabo
on my VPS i have my project at: /srv/www/brooski.net/brooski/(all my files, settings.py, url.py are here) and my VirtualHost is setup like this: ServerAdmin r...@brooski.net ServerName brooski.net ServerAlias www.brooski.net DocumentRoot /srv/www/brooski.net/publi

Passing directory structure to template extending change_form

2010-02-24 Thread Timothy Kinney
I have a template which extends change_form.html and I want to display the same directory links that change_form.html displays. However, I'm not sure which dictionary values to pass in to accomplish this. The breadcrumbs section is: {% trans "Home" %} › {{ app_label|capfirst|escape }} ›

improvements on this directory structure

2008-05-22 Thread phillc
ive been changing the structure of my projects/applications over and over. thats because every time i change it, i realize i can make it a bit different. the whole time i felt it was neccessary to allow for multiple projects on the same host. well now that ive finally gotten somewhere, i was hopin

Re: Directory structure

2007-02-12 Thread kbochert
On Feb 12, 8:42 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > You can do it either way, but the suggested way works better when you have > multiple apps which share the same layout and who's templates all inherit > from the same base template. Add on top of that the fact that (in a large >

Re: Directory structure

2007-02-12 Thread Waylan Limberg
On Mon, 12 Feb 2007 23:19:19 -0500, kbochert <[EMAIL PROTECTED]> wrote: > >> From the tutorial I see that a project directory looks like: > > Project > App > models.py > views.py > Templates > App > index.htm > Admin >

Re: Directory structure

2007-02-12 Thread Malcolm Tredinnick
On Mon, 2007-02-12 at 20:19 -0800, kbochert wrote: > >From the tutorial I see that a project directory looks like: > > Project > App > models.py > views.py > Templates > App > index.htm > Admin > > Doesn't it make more

Directory structure

2007-02-12 Thread kbochert
>From the tutorial I see that a project directory looks like: Project App models.py views.py Templates App index.htm Admin Doesn't it make more sense to have: Project App models.py views.

Re: Directory structure & common functions

2006-08-15 Thread Michal
Thank you for help guys. I put into "utils" directory __init__.py file, and now I am able to import functions from this directory. Regards Michal Ian Clelland wrote: > On 8/14/06, Michal <[EMAIL PROTECTED]> wrote: >> I would like make subdirectory "utils", and import from it all files >> which

Re: Directory structure & common functions

2006-08-15 Thread Ian Clelland
On 8/14/06, Michal <[EMAIL PROTECTED]> wrote: > I would like make subdirectory "utils", and import from it all files > which I need in particular application. But if I type for example: > from utils.strings import convert_string > I receive error: "Could not import app1.views. Error was: No module

Re: Directory structure & common functions

2006-08-15 Thread SmileyChris
Hi Michal, Try importing with the project name as part of the import path: from projectname.utils.strings import convert_string --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Directory structure & common functions

2006-08-14 Thread Michal
Hello, I have question about directory structure. Look at this please: / /app1 /app2 /app3 /templates At the root there is files like urls.py, settings.py, etc. There are also many subdirectories with applications, and subdirectory with templates. Now, I have some common

Re: Directory structure for pluggable apps and projects

2006-05-30 Thread adurdin
An application can be independent of a project -- there's no need for it to be contained in a project's directory. All that matters is that the application's parent directory is on sys.path so that "import" will find it. So "Apps/" can just be an empty directory initially, then use "django-admin

Directory structure for pluggable apps and projects

2006-05-27 Thread David Montgomery
/Sites /mysite1 /mysite2 Each site here is a separate project, with different domains, users, data, etc., and each app could be deployed on each site. Does this directory structure seem reasonable? If so, what's the best way to initialize ("startapp") the App structure