, Mike Dewhirst <mi...@dewhirst.com.au>
wrote:
> On 18/04/2018 6:09 PM, Simon Barnett wrote:
>
>> Ah, I think you've slightly misunderstood me.
>>
>> I already have staging and production sites and settings files - I don't
>> use the Sites framework for that - I
On 18/04/2018 6:09 PM, Simon Barnett wrote:
Ah, I think you've slightly misunderstood me.
I already have staging and production sites and settings files - I
don't use the Sites framework for that - I just use the
DJANGO_SETTINGS_MODULE to control which settings file to use.
But now, I need
Ah, I think you've slightly misunderstood me.
I already have staging and production sites and settings files - I don't
use the Sites framework for that - I just use the DJANGO_SETTINGS_MODULE to
control which settings file to use.
But now, I need to start using the Sites framework to serve
On 17/04/2018 8:51 PM, sbarnett wrote:
What is the best way to structure multiple settings files when using
the Sites framework?
I've already got a base settings file along with a local, staging and
production file which inherits from this and makes some changes/additions.
But now I need
What is the best way to structure multiple settings files when using the
Sites framework?
I've already got a base settings file along with a local, staging and
production file which inherits from this and makes some changes/additions.
But now I need to use the Sites framework so I need another
down votefavorite
<https://stackoverflow.com/questions/46139938/how-to-use-sites-framework-in-live-server-django#>
I am a beginner in django and i used sites framework
<https://docs.djangoproject.com/en/dev/ref/contrib/sites/> to make multiple
instances of a website use t
This would be one site with 3 routes, just create 3 views and 3 entries on
URLs.py, you don't need the sites framework
On Thu, Aug 13, 2015, 11:49 PM derek riemer <driemer.rie...@gmail.com>
wrote:
> Hi,
> I have 3 apps. A base site, with a main menu, a personal website with a
Hi,
I have 3 apps. A base site, with a main menu, a personal website with a
biography, and a weather app. I was curious if the sites framework can
distinguish each app as a separate site while they are all on the same
domain? I have derekriemer.pythonanywhere.com, and on the apps are
pointed
wrote:
> Are there any plans to change the Permissions to use the sites framework?
> To support multi-site on my site, I need the ability to assign different
> permissions to the same user on different sites. Alternatively, any
> suggestions how to achieve this? Thanks
>
> --
>
Are there any plans to change the Permissions to use the sites framework? To
support multi-site on my site, I need the ability to assign different
permissions to the same user on different sites. Alternatively, any suggestions
how to achieve this? Thanks
--
You received this message because
what I mean is that each supervisor thread calls a separate gunicorn
process. Sorry I'm getting the terms confused.
Anyway, I tried it, but I'm still having trouble.
Here is my supervisor.conf
[program:gunicorn-blog-HE-development]
directory=/var/www/blog.development/private/blog
What do you mean by 'gunicorn instance' here?
> The idea is that in each gunicorn instance I set the
> DJANGO_SETTINGS_MODULE to a different settings.py file, and hopefully
> get the corrrect result.
In any case, I highly recommend you just use supervisord[1] for this
and put the path to the
Hi,
I'm trying to run multiples sites using the sites-framework, and
gunicorn.
I'm using the same project, same databases, only I try to use
different settings.py files with different names.
The idea is that in each gunicorn instance I set the
DJANGO_SETTINGS_MODULE to a different settings.py
hey guys, i have been reading about django sites, but i still dont
understand how to implement it to manage multiple sites using the
admin, i have two domains, ashtangayogavideo.com, and
abilityexplosion.org, im using mod_wsgi in a django project inside
ashtangayogavideo.com, how can i link a
On Mon, Apr 26, 2010 at 12:59 AM, Francis Gulotta wrote:
> The latest patch in that ticket's comments seems to work for me. Being new
> to the project may I ask, is this ticket not closed due to lack of tests or
> have a stumbled upon a design disagreement?
The latest
I get a "DatabaseError: (1146, "Table 'project.django_site' doesn't exist")"
error when clicking on a "View on site" link. I'd rather not use the
framework as the url is changing around with development and deployment
quite frequently. I think this is the link for the ticket around this issue.
On Sunday 21 March 2010 05:43:44 ejm wrote:
> Hi,
>
> My app uses a model called Site which is essentially the same as in
> the django.contrib.sites framework (domain and name), except that my
> model needs an extra field and is related through a foreign key to
> another model. (It is related to
le. But this would mean hacking the source code of
> the django.contrib.sites.models.Site class to add the abstract = True
> to the Meta class, etc. Changing the source code doesn't sound like a
> good idea either; it could cause issues with upgrading the sites
> framework, etc.
> T
Changing the source code doesn't sound like a
good idea either; it could cause issues with upgrading the sites
framework, etc.
There may be a simple solution in the form of a language feature I'm
not familiar with (I'm a Python beginner). I'm thinking along the
lines of modifying django.contrib.sites
I'm working on a mostly admin based application and this is the first
time I've leveraged the sites framework. However, I'd like to expand
on the site model... add more information... and even be able to
upload files.
Is it a simple process to modify the Site models? I tend to want to
steer
Sites are on the same box. Really, i'm just trying to make a proof of
concept: each site is just a settings file, media directory, and
templates directory. They all share a database. i could use a common
MEDIA_ROOT, but just didn't want to. Is there a way to have a
secondary media location
Need more data here. This ventures from strictly Django into
deployment setups. Why exactly can't you just use a common MEDIA_ROOT?
Are your sites on different boxes?
-- Andrew
On Jul 2, 2:19 pm, smcoll wrote:
> i have a project running multiple sites. One of the apps in
i have a project running multiple sites. One of the apps in the
project has a model with a FileField and an M2M to `Site`. Since each
site has its own MEDIA_ROOT, a model instance saved from SiteA
(publishing on both SiteA and SiteB) can only display the file from
SiteA, because the file only
D'oh. I knew I was missing something simple and obvious. Thanks.
--~--~-~--~~~---~--~~
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
On Mon, Mar 16, 2009 at 11:19 AM, bax...@gretschpages.com <
mail.bax...@gmail.com> wrote:
>
> In my model, I've got
>
>sites = models.ManyToManyField(Site)
>
> In a signal, I want to check which site(s) that model has been
> assigned to, not which site their currently on. I need something
I think these are the relevant docs you need;
http://docs.djangoproject.com/en/dev/topics/db/queries/#related-objects
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/16 bax...@gretschpages.com
>
> In my model, I've got
>
>sites =
In my model, I've got
sites = models.ManyToManyField(Site)
In a signal, I want to check which site(s) that model has been
assigned to, not which site their currently on. I need something like
if instance.sites.id == 1:
do stuff
Of course, that doesn't work. How do I do this?
> so in admin interface i have 3 apps eventsapp, expoapp, and foodapp.
> when i write in terminal
> :~/DJANGOPRJ/myproject/exposite$/ python manage.py shell>>from
> myproject.eventsapp.models import *
>
> Traceback (most recent call last):
> File "", line 1, in ?
> ImportError: No module named
we have same structure events class in both sites.
Both sites use the same events database, and an events is associated
with one or more sites
It lets the site producers edit all events -- on both sites -- in a
single interface (the Django admin).
so my doubt is:
Is it necessary to write events
http://pastebin.com/m78d7486f
http://docs.djangoproject.com/en/dev/ref/contrib/sites/ i have
reffered this link but i have doubt shall i keep Article model's class
in both site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
FTP. Yikes! The sites all run PHP, but my
client has expressed interest in moving to Django eventually.
Would this be possible using Django's sites framework? I have not
used the sites framework before, but on first read of the
documentation, it seems that sites is restricted to a single
I recently read this article about the "sites" framework (http://
docs.djangoproject.com/en/dev/ref/contrib/sites/?from=olddocs) but I
have a few un-answered questions. Is it possible to restrict users of
the admin site to a particular "site"? I'd like to be able to create
I've been setting trying to set up a tumblelog using the sites
framework and the current site manager and I'm hitting a bug in either
my code or Django's not sure which.
Basically what's happening is the first time I save an object the
tumble item is created, but the site field is not populated
I'm using django-voting on a model shared across two sites. I get the
top-rated objects with get_top:
best = Vote.objects.get_top(Foo, limit=50, reversed=False)
But it's bringing up the top-rated from both sites I need to just
get the ones for the current site. Any ideas?
I've recently added the sites framework but i'm noticing that the
SITE_ID (settings.SITE_ID), is returning an id of a site that doesn't
exist. I'm running on the development server @127.0.0.1:8000, this
obviously doesn't relate to any of the sites that I have added within
the sites table
On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am working on a cms that would involve several sites. I am wanting
> to filter several things by site, but the domain names are sometimes
> too long and run off the side of the filter box. I was wondering if it
> would break anything
On Jun 18, 2006, at 8:08 AM, [EMAIL PROTECTED] wrote:
>
> I was wondering if it would break anything if I canged the site
> framework to return the
> display name instead of the domain name.
Do you mean in __str__? That is for display purposes only so it
should not hurt to have it return a
Hello,
I am working on a cms that would involve several sites. I am wanting
to filter several things by site, but the domain names are sometimes
too long and run off the side of the filter box. I was wondering if it
would break anything if I canged the site framework to return the
display name
On 6/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> HI.
>
> I don't use the sites framework. Still, it looks as is I need to
> install and initialize it in order to get the feeds (syndication)
> framework.
>
> Is there some place I can put the initial valu
HI.
I don't use the sites framework. Still, it looks as is I need to
install and initialize it in order to get the feeds (syndication)
framework.
Is there some place I can put the initial values for the sites
framework, so the standard site is created automatically in the
database and I don't
40 matches
Mail list logo