Re: Multiple settings files with sites framework

2018-04-18 Thread m1chael
, 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

Re: Multiple settings files with sites framework

2018-04-18 Thread Mike Dewhirst
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

Re: Multiple settings files with sites framework

2018-04-18 Thread Simon Barnett
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

Re: Multiple settings files with sites framework

2018-04-17 Thread Mike Dewhirst
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

Multiple settings files with sites framework

2018-04-17 Thread sbarnett
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

how to use django sites framework in live server

2017-09-10 Thread Ahmed Mohamed
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

Re: how to use the sites framework?

2015-08-14 Thread Avraham Serour
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

how to use the sites framework?

2015-08-13 Thread derek riemer
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

Re: Permissions and the sites framework

2012-11-04 Thread Russell Keith-Magee
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 > > -- >

Permissions and the sites framework

2012-11-04 Thread Stodge
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

Re: sites framework + gunicorn

2011-03-06 Thread ronny
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

Re: sites framework + gunicorn

2011-03-02 Thread Shawn Milochik
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

sites framework + gunicorn

2011-03-02 Thread ronny
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

django sites framework

2010-08-03 Thread commonzenpython
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

Re: "view on site" erroring without sites framework

2010-04-26 Thread James Bennett
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

"view on site" erroring without sites framework

2010-04-25 Thread Francis Gulotta
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.

Re: Customizing the Sites framework

2010-03-21 Thread Atamert Ölçgen
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

Re: Customizing the Sites framework

2010-03-21 Thread Vasil Vangelovski
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

Customizing the Sites framework

2010-03-20 Thread ejm
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

Expanding Sites Framework

2009-10-27 Thread John D Giotta
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

Re: FileField/ImageField and the sites framework

2009-07-02 Thread shannon
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

Re: FileField/ImageField and the sites framework

2009-07-02 Thread Andrew Fong
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

FileField/ImageField and the sites framework

2009-07-02 Thread smcoll
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

Re: Simple sites framework question

2009-03-16 Thread Baxter
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

Re: Simple sites framework question

2009-03-16 Thread Alex Gaynor
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

Re: Simple sites framework question

2009-03-16 Thread Dougal Matthews
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 =

Simple sites framework question

2009-03-16 Thread bax...@gretschpages.com
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?

Re: sites framework

2009-02-12 Thread bax...@gretschpages.com
> 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

sites framework

2009-02-11 Thread Praveen
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

How does sites framework work?

2009-02-11 Thread Praveen
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

sites framework with multiple machines

2009-01-27 Thread David Lindquist
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

Sites Framework and Security

2008-11-13 Thread mcgwest
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

problems with post_save and sites framework

2008-09-11 Thread nek4life
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

django-voting and sites framework

2008-04-04 Thread [EMAIL PROTECTED]
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?

'sites' framework

2007-11-27 Thread veearrsix
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

Re: Changing Sites Framework

2006-06-18 Thread Adrian Holovaty
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

Re: Changing Sites Framework

2006-06-18 Thread Don Arbow
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

Changing Sites Framework

2006-06-18 Thread [EMAIL PROTECTED]
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

Re: Initial data for sites framework?

2006-06-04 Thread Jorge Gajon
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

Initial data for sites framework?

2006-06-04 Thread [EMAIL PROTECTED]
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