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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>
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
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
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:
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
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 }} ›
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
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
>
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
>
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
>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.
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
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
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
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
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
/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
34 matches
Mail list logo