Re: configuration

2023-01-19 Thread Namanya Daniel
Profile, shipments and species are models? Or your stored data in one model On Thu, 19 Jan 2023 at 01:56, frank dilorenzo wrote: > I cannot seem to resolve this configuration correctly. > > I have a list of suppliers. > A supplier can have one profile > A supplier can have many

configuration

2023-01-18 Thread frank dilorenzo
I cannot seem to resolve this configuration correctly. I have a list of suppliers. A supplier can have one profile A supplier can have many shipments. A shipment can have many species I have tried several ways and I always end up with some kind of circular problem. Any thoughts are appreciated

Re: model configuration

2021-06-06 Thread frank dilorenzo
and Django is smart enough to > fugure it out. > > Cheers > > Mike > > > > -- > (Unsigned mail from my phone) > > > > Original message > From: frank dilorenzo > Date: 5/6/21 01:20 (GMT+10:00) > To: Django users > Subject:

Re: model configuration

2021-06-04 Thread Mike Dewhirst
e: 5/6/21 01:20 (GMT+10:00) To: Django users Subject: Re: model configuration Thank Mike.  I am sorry for all this code but I am including it to show the problem I can't resolve.  I have 3 apps, shipment, supplier, specie. This is the models for them.from django.db import modelsfr

Re: model configuration

2021-06-04 Thread frank dilorenzo
Thank Mike. I am sorry for all this code but I am including it to show the problem I can't resolve. I have 3 apps, shipment, supplier, specie. This is the models for them. from django.db import models from .models import Shipment from django.utils import timezone # Create your models here. #

Re: model configuration

2021-06-03 Thread Mike Dewhirst
On 4/06/2021 1:39 pm, Mike Dewhirst wrote: On 4/06/2021 11:34 am, frank dilorenzo wrote: I have the following conditions. A supplier can have many shipments. A shipment can have many species. A shipment can have only one supplier. Species can belong to many shipments. supplier 1:n shipment shi

Re: model configuration

2021-06-03 Thread Mike Dewhirst
On 4/06/2021 11:34 am, frank dilorenzo wrote: I have the following conditions. A supplier can have many shipments. A shipment can have many species. A shipment can have only one supplier. Species can belong to many shipments. supplier 1:n shipment shipment n:m species No matter how I try I c

model configuration

2021-06-03 Thread frank dilorenzo
I have the following conditions. A supplier can have many shipments. A shipment can have many species. A shipment can have only one supplier. Species can belong to many shipments. No matter how I try I can't seem to configure the models correctly. I was hoping someone could help me on this.

Re: Configuration Django with uwsgi + NGINX

2020-12-30 Thread Venu Gopal
.@gmail.com> wrote: > >> >> Hi, I want to know about configuration steps for connecting Django with >> uwgsi + NGINX. I tried through some web links but I am getting errors. >> Thanks in advance. >> >> -- >> You received this message because you are subscrib

Re: Configuration Django with uwsgi + NGINX

2020-12-29 Thread carlos
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04 On Tue, Dec 29, 2020 at 4:57 AM Django-Learner_27 wrote: > > Hi, I want to know about configuration steps for connecting Django with > uwgsi + NGINX. I tried through

Re: Configuration Django with uwsgi + NGINX

2020-12-29 Thread Kasper Laudrup
On 29/12/2020 11.57, Django-Learner_27 wrote: Hi, I want to know about configuration steps for connecting Django with uwgsi + NGINX. I tried through some web links but I am getting errors. https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html If you face any problems

Configuration Django with uwsgi + NGINX

2020-12-29 Thread Django-Learner_27
Hi, I want to know about configuration steps for connecting Django with uwgsi + NGINX. I tried through some web links but I am getting errors. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: URL configuration error for a beginner

2020-09-02 Thread maninder singh Kumar
If its frozen, perhaps your server is not running Maninder Kumar about.me/maninder.s.kumar

Re: URL configuration error for a beginner

2020-08-31 Thread Haris Ahmad
Hello dear, add that app in settings.py in installed apps Eg. "base.apps.BaseAppConfig" Or simply "base" Kind regards Haris On Tue, 1 Sep 2020, 3:59 AM Manal Helal, wrote: > Hi > > I am using DJango to the first time and appreciate some explanation to the > error I am receiving. I followed the

Re: URL configuration error for a beginner

2020-08-31 Thread Arpana Mehta
You need to replace apps.url with the name of the app ( which you might have created using python manage.py startapp and have a urls.py file in that app folder) In the tutorial also, they first create an app 'polls' and then include 'polls.url' It would be easier to solve your problem if you can

URL configuration error for a beginner

2020-08-31 Thread Manal Helal
Hi I am using DJango to the first time and appreciate some explanation to the error I am receiving. I followed the steps in the polls app tutorial: https://docs.djangoproject.com/en/3.1/intro/tutorial01/ and getting the following error when running: python manage.py runserver *path('app/', inc

Re: TINYMCE Configuration on Django

2020-02-17 Thread Ahmed Hashim
ill help > > On Sun, 16 Feb 2020, 22:27 wrote: > >> Configured as you specified below but still problem persist >> >> >> >> *From:* django-users@googlegroups.com *On >> Behalf Of *Omkar Parab >> *Sent:* Sunday, 16 February 2020 22:01 >> *

Re: TINYMCE Configuration on Django

2020-02-16 Thread Hedrick Godson's
6 February 2020 22:01 > *To:* django-users@googlegroups.com > *Subject:* Re: TINYMCE Configuration on Django > > > > Ckeditor is also cool, and easy to use in production. > > > > On Mon, Feb 17, 2020, 12:02 AM Hedrick Godson's > wrote: > > In ur setti

RE: TINYMCE Configuration on Django

2020-02-16 Thread ngallen4
Configured as you specified below but still problem persist From: django-users@googlegroups.com On Behalf Of Omkar Parab Sent: Sunday, 16 February 2020 22:01 To: django-users@googlegroups.com Subject: Re: TINYMCE Configuration on Django Ckeditor is also cool, and easy to use in

Re: TINYMCE Configuration on Django

2020-02-16 Thread Omkar Parab
ue > > } > You can also add a lot of features, read their docs is straight > > On Sun, 16 Feb 2020, 18:13 wrote: > >> On settings.py >> >> >> >> # TIYMCE >> >> DJANGO_SETTINGS_MODULE='testtinymce.settings' >> >> >> >> *

Re: TINYMCE Configuration on Django

2020-02-16 Thread Hedrick Godson's
ettings' > > > > *From:* django-users@googlegroups.com *On > Behalf Of *Hedrick Godson's > *Sent:* Sunday, 16 February 2020 17:57 > *To:* django-users@googlegroups.com > *Subject:* Re: TINYMCE Configuration on Django > > > > How did you configure tinym

RE: TINYMCE Configuration on Django

2020-02-16 Thread ngallen4
On settings.py # TIYMCE DJANGO_SETTINGS_MODULE='testtinymce.settings' From: django-users@googlegroups.com On Behalf Of Hedrick Godson's Sent: Sunday, 16 February 2020 17:57 To: django-users@googlegroups.com Subject: Re: TINYMCE Configuration on Django How did you co

RE: TINYMCE Configuration on Django

2020-02-16 Thread ngallen4
Okay thanks let me do it From: django-users@googlegroups.com On Behalf Of N'BE SORO Sent: Sunday, 16 February 2020 17:43 To: django-users@googlegroups.com Subject: Re: TINYMCE Configuration on Django Hello, please use tinymce 4 Lite https://github.com/Soro08/django-tinymce4

Re: TINYMCE Configuration on Django

2020-02-16 Thread Hedrick Godson's
How did you configure tinymce in settings.py?You have to add other functionalities too. On Sun, 16 Feb 2020, 17:43 N'BE SORO wrote: > Hello, please use tinymce 4 Lite > > https://github.com/Soro08/django-tinymce4-lite > > Le dim. 16 févr. 2020 à 14:28, a écrit : > >> Hello >> >> Am Luqman from

Re: Static files configuration

2019-12-18 Thread Kevin Dublin
Hey, try this: In settings: # If running collectstatic STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # make sure if you have multiple apps that you want to direct to specific location of static files STATIC_DIRS = ( os.path.join(BASE_DIR, '../apps/core/static'), ) Finally if you're us

Static files configuration

2019-12-18 Thread Yash Garg
I have to display a HTML page with its supporting css, js and images. So i create a template folder to put HTML in it then i create a static folder in which i create css, js and img folder and put related files into these folders. then I configure the *Settings.py* BASE_DIR = os.path.dirname(os

I have done all apache2 configuration still Django Project not running on my hosting can anyone guide me to run it well on ubuntu server

2019-08-03 Thread Pooja Aiivine
Django project is running well with its development server, but not running using apache configuration following is my directory path for django project on plesk panel: - /var/www/vhosts/itssmartworld.com/MyAwesomeCart here MyAwesomeCart is my django project please, suggest apache

Database Configuration Error

2019-06-29 Thread Soumen Khatua
Hi Folks, I'm uisng Digital Ocean provided VPS and I'm using PostgreSQL and I'm gettings this error, *File "/home/sai/saiproject/env/lib/python3.5/site-packages/psycopg2/__init__.py", line 126, in connectconn = _connect(dsn, connection_factory=connection_factory, **kwasync)django.db.utils

WhiteNoise configuration is incompatible 'Heroku'

2019-05-31 Thread omar ahmed
-05-29T13:09:38.33+00:00 app[web.1]: 2019-05-29T13:09:38.34+00:00 app[web.1]: Your WhiteNoise configuration is incompatible with WhiteNoise v4.0 2019-05-29T13:09:38.36+00:00 app[web.1]: This can be fixed by following the upgrade instructions at: 2019-05-29T13:09:38.00

WhiteNoise configuration is incompatible Heroku

2019-05-31 Thread omar ahmed
-05-29T13:09:38.33+00:00 app[web.1]: 2019-05-29T13:09:38.34+00:00 app[web.1]: Your WhiteNoise configuration is incompatible with WhiteNoise v4.0 2019-05-29T13:09:38.36+00:00 app[web.1]: This can be fixed by following the upgrade instructions at: 2019-05-29T13:09:38.00

Re: Help on architecture of User layout configuration system

2019-05-15 Thread Chetan Ganji
This one is interesting. I was also looking for the solution of the same problem. If I understand correctly, the problem with forms is - User can choose the name of the field and the type of the fields e.g. IntegerField(). FloatField(), etc. Kind of a form that is generated using a form :P More li

Re: Help on architecture of User layout configuration system

2019-05-13 Thread Devender Kumar
Thank you for your suggestion I am using PostgreSQL You have successfully saved the layout but I am talking about the dynamics forms fields which will be used for form submission how you are looking to store the values of 1000's of records entered after that in those fields. that's why I was loo

Re: Help on architecture of User layout configuration system

2019-05-13 Thread Chetan Ganji
My 2 cents - You will have to store the user preferences in a settings file on the server. I would suggest to use a JSONField for the same if you are using the PostgrSQL. Otherwise you will have to create a separate model. Saving settings in model will take more efforts. Using JSON for this would

Help on architecture of User layout configuration system

2019-05-13 Thread Devender Kumar
Hi, I want to make a web app in which user has rights to configure his layout.Means each user can configure his layout according to his choice and work Like how many fields can his form have how many field he want to see in table view of individual record view . configure theme color of his own

Configuration Management

2019-03-23 Thread anand . desai
Hi All, Can anyone point to a preferred configuration management tool that can be used for Django on EC2? Thanks, Anand -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Re: IIS configuration for python Django project

2019-03-22 Thread Larry Martell
On Fri, Mar 22, 2019 at 8:28 AM patel hastik wrote: > > Hello, everyone > > I created python Django web Application I want to configure with IIS on the > window OS. I try many things and research about this I found video and > document and I follow all the step mention in the document but I am g

IIS configuration for python Django project

2019-03-22 Thread patel hastik
Hello, everyone I created python Django web Application I want to configure with IIS on the window OS. I try many things and research about this I found video and document and I follow all the step mention in the document but I am getting Error "internal server Error 500.00 unknown FastCGI Occu

Re: Databases configuration

2018-12-07 Thread Daniel M
I think the problem is the server. Try pip install mysqlserver then start the server. On Dec 7, 2018 17:27, "Chuck R" wrote: > Hi, if you're using python venv, try install mysqlclient(pip install > mysqlclient) and rerun the local server. > > On Thu, Dec 6, 2018, 9:38 AM C. Kirby >> Did you sta

Re: Databases configuration

2018-12-07 Thread Chuck R
Hi, if you're using python venv, try install mysqlclient(pip install mysqlclient) and rerun the local server. On Thu, Dec 6, 2018, 9:38 AM C. Kirby Did you start your mysql process? > > On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: >> >> Hi everyone, >> >> I am new to Djang

Databases configuration

2018-12-07 Thread Chuck R
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mysql', 'USER': 'root', 'PASSWORD': 'root', 'HOST': '', 'PORT': '3306' } } This should work for you. You were using the wrong port.The port you were using is for postg

Re: Databases configuration

2018-12-07 Thread Kasper Laudrup
Hi Cool Smith, On 12/7/18 10:11 AM, Cool Smith wrote: I tried starting MYSQL server on System Preferences. However, it seems the server will shutdown automatically a few seconds later. You would probably have a better chance of getting useful responses if you posted your question in a forum

Re: Databases configuration

2018-12-07 Thread Cool Smith
I tried starting MYSQL server on System Preferences. However, it seems the server will shutdown automatically a few seconds later. On Friday, December 7, 2018 at 8:09:28 PM UTC+11, Cool Smith wrote: > > How to do so? > > On Friday, December 7, 2018 at 1:38:09 AM UTC+11, C. Kirby wrote: >> >> Did

Re: Databases configuration

2018-12-07 Thread Cool Smith
How to do so? On Friday, December 7, 2018 at 1:38:09 AM UTC+11, C. Kirby wrote: > > Did you start your mysql process? > > On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: >> >> Hi everyone, >> >> I am new to Django. I have started a new project running on my localhost. >> Rath

Re: Databases configuration

2018-12-06 Thread Arnaldo Díaz Molina
Did you have installed the mysql driver??? Is your host localhost??? Did you have your mysql service started??? 2018-12-06 15:38 GMT+01:00, C. Kirby : > Did you start your mysql process? > > On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: >> >> Hi everyone, >> >> I am new to D

Re: Databases configuration

2018-12-06 Thread C. Kirby
Did you start your mysql process? On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: > > Hi everyone, > > I am new to Django. I have started a new project running on my localhost. > Rather than using the default sqlite database, I changed it to mysql with > the following settin

Databases configuration

2018-12-06 Thread Cool Smith
Hi everyone, I am new to Django. I have started a new project running on my localhost. Rather than using the default sqlite database, I changed it to mysql with the following settings on MacOS High Sierra v13.10.6: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql',

Re: configuration settings.py

2018-11-11 Thread Mike Dewhirst
On 12/11/2018 9:00 AM, Gear Crew wrote: when i can use it in any project? Have a look at wsgi.py created by django-admin when you start a new project. That should let you understand how to use Django in multiple projects. In my case, I use different virtualenvs and separate installations of

Re: configuration settings.py

2018-11-11 Thread Gear Crew
when i can use it in any project? On Sunday, 11 November 2018 23:57:58 UTC+2, Mike Dewhirst wrote: > > On 12/11/2018 3:24 AM, Gear Crew wrote: > > I want to understand why do that > > Because Django needs to know which settings module to use so it can find > all your apps and models. > > It wa

Re: configuration settings.py

2018-11-11 Thread Mike Dewhirst
On 12/11/2018 3:24 AM, Gear Crew wrote: I want to understand why do that Because Django needs to know which settings module to use so it can find all your apps and models. It was designed that way so that a single installation of Django could be used for multiple projects. Screenshot fro

configuration settings.py

2018-11-11 Thread Gear Crew
I want to understand why do that [image: Screenshot from 2018-11-11 18-09-56.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@goog

Django sessions not configuration issues for Heroku/Redis

2018-10-10 Thread jesse
Hello, I'm having issues with Django sessions on Heroku/Redis. I expect to be able to login and stay logged in. Instead, user will continually be logged out and sessions do not persist. I posted more details on Stack Overflow here: https://stackoverflow.com/questions/52535488/django-sessions-n

Django sessions configuration issues in production with Heroku/Redis

2018-10-10 Thread jesse
Hello, I'm having trouble configuring Django sessions to be persistent. I expect a user to be able to log in on first try and then stay logged in. Currently, it takes multiple tries to login and then the user is logged out. Sessions are clearly not persisting. I posted a bounty for this on Stac

Re: Configuration settings for Sql Server database in django

2018-10-10 Thread Rakhee Menon
Hi Vinod, Thanks for the quick response ...I also had doubt regarding which version of python and django are supported for SQL Server 2014. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: Configuration settings for Sql Server database in django

2018-10-10 Thread 'Vinod Kumar' via Django users
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'db_name', 'USER': 'db_user', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '', } } O

Configuration settings for Sql Server database in django

2018-10-09 Thread Rakhee Menon
Hello Everyone, Please could anyone specify what are the configuration settings to be done in Django for using SQL Server 2014 as database instead of the default sqlite. Thanks in Advance Rakhee -- You received this message because you are subscribed to the Google Groups "Django

Re: Django configuration settings

2018-09-04 Thread Andréas Kühne
Hi, You should not run django from inside the packages directory. If you want to install and run django - try to check one of the tutorials - I recommend either the official tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Or the django girls tutorial: https://tutorial.djangogirl

Django log error email configuration?

2018-06-29 Thread prateek gupta
;" SERVER_EMAIL = "" EMAIL_HOST = "" EMAIL_HOST_USER = "" EMAIL_HOST_PASSWORD = "" EMAIL_PORT = "" DEFAULT_FROM_EMAIL = "" # send server errors to admin ADMINS = (('admin', 'ad...@example.com'),) MANAGERS = ADMINS

Re: smtp email configuration error

2018-06-23 Thread Ruhia gr
am having below error now can anyone help me with this [23/Jun/2018 05:59:32] "GET /contact/ HTTP/1.1" 200 11440 Not Found: /contact/contactform/contactform.js [23/Jun/2018 05:59:34] "GET /contact/contactform/contactform.js HTTP/1.1" 404 16 637 Not Found: /contact/contactform/contactform.js [23/Jun

Re: smtp email configuration error

2018-06-22 Thread Jason
*SMTPSenderRefused: (501, ': sender address must contain a domain', u'Your'* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegrou

smtp email configuration error

2018-06-22 Thread Ruhia gr
when am trying to submit my contact form i am getting error please will anyone try to solve this and tell me whats is wrong here and what i actually missed out given below Internal Server Error: /contact/ Traceback (most recent call last): File "C:\Users\user\Envs\ibex\lib\site-packages\django

Re: where does logging configuration go?

2016-11-26 Thread bob gailer
On 11/26/2016 9:02 AM, ludovic coues wrote: the settings.py file of your project Thank you. Is that documented anywhere? I followed various links; none of which pointed me to that. 2016-11-25 23:15 GMT+01:00 bob gailer : https://docs.djangoproject.com/en/1.9/topics/logging/ shows some logg

Re: where does logging configuration go?

2016-11-26 Thread ludovic coues
the settings.py file of your project 2016-11-25 23:15 GMT+01:00 bob gailer : > https://docs.djangoproject.com/en/1.9/topics/logging/ > > shows some logging configurations, but does not tell me where to put them. > > Where would you suggest? > > -- > You received this message because you are subscr

where does logging configuration go?

2016-11-25 Thread bob gailer
https://docs.djangoproject.com/en/1.9/topics/logging/ shows some logging configurations, but does not tell me where to put them. Where would you suggest? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: Basic configuration for running under Apache

2016-11-16 Thread Ricardo Prado
sample configuration WSGIDaemonProcess framework python-path=/mnt/g/Python/osvaldo/framework/:/mnt/g/Python/osvaldo/framework/lib/python2.7/site-packages WSGIProcessGroup framework WSGIScriptAlias / /mnt/g/Python/osvaldo/framework/framework/wsgi.py ServerName 127.0.0.2

Re: Basic configuration for running under Apache

2016-11-15 Thread Antonis Christofides
The author of that snippet decided that the root directory of the Django project is named "mysite.com", whereas the Django project itself is "mysite". While this is plausible, it is suboptimal as an example because usually the root directory of the Django project has the same name as the Django

Re: Basic configuration for running under Apache

2016-11-15 Thread Tim Graham
I think it's just an example directory name. You can use whatever names you like. On Monday, November 14, 2016 at 2:36:44 PM UTC-5, bob gailer wrote: > > https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/ > > This page offers: > > WSGIScriptAlias //path/to/mysite.com/mysite/

Basic configuration for running under Apache

2016-11-14 Thread bob gailer
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/ This page offers: WSGIScriptAlias //path/to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com In my setup this becomes c:\Users\myname\mysite\mysite\wsgi.py I am puzzled by the .com in the example. Can you exp

Re: nginx configuration to cache all endpoints but one

2016-10-02 Thread M Hashmi
> >>>> Il giorno venerdì 23 settembre 2016 21:45:45 UTC+2, M Hashmi ha scritto: >>>>> >>>>> Create a separate block to exclude certain endpoint above others. >>>>> >>>>> You can also try following approach. >>

Re: nginx configuration to cache all endpoints but one

2016-10-02 Thread gg4u
u can also try following approach. >>>> >>>> https://groups.google.com/forum/embed/#!topic/openresty-en/apyaHbqJetU >>>> Regrads, >>>> Mudassar >>>> >>>> On Fri, Sep 23, 2016 at 12:26 PM, gg4u wrote: >>>> >>>>&

Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread gg4u
t; https://groups.google.com/forum/embed/#!topic/openresty-en/apyaHbqJetU >>> Regrads, >>> Mudassar >>> >>> On Fri, Sep 23, 2016 at 12:26 PM, gg4u wrote: >>> >>>> Hello, >>>> >>>> I want to cache all api endpoints except

Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread M Hashmi
ds, >> Mudassar >> >> On Fri, Sep 23, 2016 at 12:26 PM, gg4u wrote: >> >>> Hello, >>> >>> I want to cache all api endpoints except of one: /api/search endpoint. >>> Do I need to specify settings for each of the endpoints? >>

Re: nginx configuration to cache all endpoints but one

2016-09-25 Thread gg4u
> >> I want to cache all api endpoints except of one: /api/search endpoint. >> Do I need to specify settings for each of the endpoints? >> >> My configuration use nginx as server on port 8000 and port 80 as virtual >> proxy server. >> Please not I removed

Re: nginx configuration to cache all endpoints but one

2016-09-23 Thread M Hashmi
ts except of one: /api/search endpoint. > Do I need to specify settings for each of the endpoints? > > My configuration use nginx as server on port 8000 and port 80 as virtual > proxy server. > Please not I removed settings not related to question to minify the post! > > server

nginx configuration to cache all endpoints but one

2016-09-23 Thread gg4u
Hello, I want to cache all api endpoints except of one: /api/search endpoint. Do I need to specify settings for each of the endpoints? My configuration use nginx as server on port 8000 and port 80 as virtual proxy server. Please not I removed settings not related to question to minify the post

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
I am rebuilding a new server from scratch now. New IP: Same setup with new IP from Digital Ocean 1click install - http://162.243.58.204/ I am going to try and setup the Static files directory again. Since they are using Django 1.6 and the command makemigration and migrate are not in 1.6 Sho

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Luis Zárate
Where is STATIC_ROOT ? static_root path needs to match with nginx /static location. El miércoles, 1 de junio de 2016, Roger Lanoue jr escribió: > Hi Django users group. > I am test and learning django out. I have a testing server and got my test page up. > Started to play with the Django suit

Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
Hi Django users group. I am test and learning django out. I have a testing server and got my test page up. Started to play with the Django suit control panel and ran in to some problems with my setup. *Server: Digital Ocean one click install.* Ubuntu 14.04 Nginx Postgres python 2.7 django 1.6

Re: Multiple site package directories for Python and question about apache configuration

2014-11-05 Thread Scot Hacker
You want to establish the path directories in your .wsgi file. Use `addsitedir` to set the path to site-packages and set additional paths with path.append, e.g.: import os, sys, site site.addsitedir('/path/to/site-packages') sys.path.append('/extra/path/1') sys.path.append('/extra/path/2')

Re: Multiple site package directories for Python and question about apache configuration

2014-11-04 Thread Aliane Abdelouahab
i dont know how to do that, but the easied way is to just copy the whole packages and paste them in only one directory, since python packages are just folders/eggs Le mardi 4 novembre 2014 13:26:12 UTC+1, robert brook a écrit : > > I see that there are 2 paths in my application for site packages

Re: Multiple site package directories for Python and question about apache configuration

2014-11-04 Thread robert brook
I see that there are 2 paths in my application for site packages. How do I configure Apache to use the 2 packages. A typical entry in Apache is WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python3.X/site-packages Can I specify 2 paths to represent the 2 locations of site packages.

Re: Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread Aliane Abdelouahab
On linux, python installs libs in diffferents places: for example in open suse, when you install it the first time, and you choose python and some third party libraries, and then when you will do setup.py for a library you download, they will be in different locations! http://stackoverflow.com/a

Re: Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I overlooked mentioning that the path command returned 2 different locations for the 3 modules. Not sure why one package got installed in the lib64 path. They were all installed with the setup.py install command. On Monday, November 3, 2014 3:18:06 PM UTC-5, robert brook wrote: > > I am buildin

Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I am building the web application on a linux red hat machine. I was trying to pull the path for the site packages for the 3 modules that I have installed so that I can specify the path in the apache config file Can I specify 2 paths in Apache? Thanks >>> import django >>> print (django.__pa

Re: Site specific additional configuration - extending Django Sites model

2014-10-03 Thread Rakan Alhneiti
It seems like the issue was with my app naming ("site") with south actually creating the migration into Django's site package directory. Table inheritance seems the way to go. Thanks again, Rakan Best Regards, *Rakan AlHneiti* Find me on the internet: *Online Blog*: http://rakan.me Rakan Alhn

Re: Site specific additional configuration - extending Django Sites model

2014-10-03 Thread Rakan Alhneiti
Hello Collin, The problem with the second approach is that it's ugly, i prefer the first one instead. However, i've got to figure out how to prevent South from creating the migration in the "django.contrib.site" directory in my virtualenv. Thanks, Rakan On Friday, October 3, 2014 5:14:34 PM

Re: Site specific additional configuration - extending Django Sites model

2014-10-03 Thread Collin Anderson
> > 1) Create a model that extends Site model: this would result in South > adding the migration into django itself rather than the app extending the > Site model. I haven't got any further with this option as i hit this road > block. I think i understand that given the Site model is not abstra

Site specific additional configuration - extending Django Sites model

2014-10-03 Thread Rakan Alhneiti
Hello all, I am currently trying to develop a blog engine which uses the sites framework provided by Django in order to add blog-specific settings. Such preferences could be something like blog_description, the user's twitter handle, pagination settings, widgets .. etc. Looking at the sites fr

Re: Database configuration errors saying 'ENGINE' isn't set when it is

2014-09-02 Thread Shaun Kruger
shell with all of the configuration environment variables I couldn't import django.db without getting an import error on local_settings. This circular import explains that. Moving my error handler functions to a different module resolved the circular import and now everything is working.

Database configuration errors saying 'ENGINE' isn't set when it is

2014-09-02 Thread Shaun Kruger
I have a django 1.4.3 application (upgrading to 1.4.14 made no difference) that is behaving oddly. I know 1.4 isn't officially supported, but I'm hoping to come up with some understanding about what is going wrong so I can get by for the next few weeks until we can start our upgrade to 1.7. I

Re: placing views and models in configuration root

2014-04-29 Thread Venkatraman S
On Tue, Apr 29, 2014 at 12:41 PM, Andreas Bloch wrote: > because they are sites in a bigger django project with multiple apps... > I think you are referring to something like a company website along with a SaaS solution. If yes, there are multiple ways could be done. But a quick solution is obvi

Re: placing views and models in configuration root

2014-04-29 Thread Andreas Bloch
because they are sites in a bigger django project with multiple apps... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com

Re: placing views and models in configuration root

2014-04-29 Thread Venkatraman S
for those and stuff them all in there or > just use templateviews and route them from the configuration root urls.py? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop rece

Re: placing views and models in configuration root

2014-04-28 Thread Andreas Bloch
so what do you when you're making trivial sites, that don't have any database models, like about-page, landing-page and so on? would you make a separate app for those and stuff them all in there or just use templateviews and route them from the configuration root urls.py? -- You rec

Re: placing views and models in configuration root

2014-04-27 Thread Andreas Bloch
> > lrighty then - I will create an app then... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: placing views and models in configuration root

2014-04-27 Thread Venkatraman S
On Mon, Apr 28, 2014 at 11:57 AM, Andreas Bloch wrote: > is it bad practice to create a views.py and models.py file and place it in > the configuration root? (the folder that is created when you run > "startproject " which contains the settings, urls, and uwsgi > file&qu

placing views and models in configuration root

2014-04-27 Thread Andreas Bloch
is it bad practice to create a views.py and models.py file and place it in the configuration root? (the folder that is created when you run "startproject " which contains the settings, urls, and uwsgi file") -- You received this message because you are subscribed to the Google

Re: Static files configuration

2013-09-28 Thread Jason S
Thanks Tom, I ran the command python manage.py collectstatic and it copied across new static content i've added to [project]/static/ which is my STATIC_ROOT. But still no css for the admin pages. Also thanks, I do have to set those up and figure them out, I've seen a few tuts for them so will

Re: Static files configuration

2013-09-28 Thread Tom Lockhart
On 2013-09-28, at 4:58 PM, Tom Lockhart wrote: > > On 2013-09-28, at 4:21 PM, Jason S wrote: > >> Thanks Tom, >> I had a pretty painful install experience over a few weeks and had sudo'd a >> command I shouldn't have when doing the GAE install. >> After that experience i'd thought it'd be a

Re: Static files configuration

2013-09-28 Thread Tom Lockhart
On 2013-09-28, at 4:21 PM, Jason S wrote: > Thanks Tom, > I had a pretty painful install experience over a few weeks and had sudo'd a > command I shouldn't have when doing the GAE install. > After that experience i'd thought it'd be a pain to sort it out but i've just > chown'd the project di

Re: Static files configuration

2013-09-28 Thread Jason S
Thanks Tom, I had a pretty painful install experience over a few weeks and had sudo'd a command I shouldn't have when doing the GAE install. After that experience i'd thought it'd be a pain to sort it out but i've just chown'd the project directory and the /tmp/dev_appserver.searchindexes (afte

  1   2   3   4   >