Re: Queryset in settings.py?

2022-01-28 Thread Fabio C. Barrionuevo da Luz
com/jazzband/django-dbtemplates/ Em sex., 28 de jan. de 2022 às 20:20, Sebastian Jung < sebastian.ju...@gmail.com> escreveu: > Hello Fabio, > > i want that admin can make in database a entry to a field in my own > settings model in field standardtemplatepath for example /newtem

Re: Queryset in settings.py?

2022-01-28 Thread Sebastian Jung
Hello Fabio, i want that admin can make in database a entry to a field in my own settings model in field standardtemplatepath for example /newtemplate/ in my views.py there are exists a normal CBV Templateview with template_name = 'Testtemplate.html' and in settings.py i have a entry

Re: Queryset in settings.py?

2022-01-28 Thread Fabio C. Barrionuevo da Luz
get a queryset from app1.models.classname in settings.py. How is > this possible? > > Regards > > -- > 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

Queryset in settings.py?

2022-01-28 Thread sebasti...@gmail.com
Hello, i want to import from a app models.py like this: from app1.models import classname then i get: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. I want to get a queryset from app1.models.classname in settings.py. How is this possible? Regards -- You received

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Hella Nick
_TMPFS = False > TEST_LOG_FILE='' > TEST_USER = 'auto_test' > TEST_PSWD = 'pass' > LOG_SQL = False > USE_DEBUG_TOOLBAR = False > > LEDGER_SWITCH_DATE = '2019-12-01' > *** >

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Mike Dewhirst
I thought I'd go back and look at your original post. Your settings file looks a bit tricky. I learned to deal with multiple settings files a long time ago so I don't know what current best practice is. Essentially, the way I do it is to have a complete base.py with all settings in a default s

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread chaitanya orakala
Thank Jeorge. I went through that blog long back but I can't find a relation to my Error. I will try contacting my manager regarding this. will let you know if I find anything. Have a great day On Tue, May 19, 2020 at 2:44 PM Jorge Gimeno wrote: > I'm not sure why you're getting an exception.

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Jorge Gimeno
I'm not sure why you're getting an exception. I know the import mechanism in Python 2 was a bit different, so I'm not sure if that's the issue or if Django's import mechanism isn't finding your settings file. I don't know if you have tried this, but I saw a blog post on using multiple settings fi

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
I tried that way, sir. but it's of no use. I don't know how to resolve this issue. its been troubling me for 3 days now On Mon, May 18, 2020 at 9:29 PM Mike Dewhirst wrote: > On 19/05/2020 11:10 am, chaitanya orakala wrote: > > I am using Python 2.7 > > It is possible you need a top line in the

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread Mike Dewhirst
On 19/05/2020 11:10 am, chaitanya orakala wrote: I am using Python 2.7 It is possible you need a top line in the file like this ... from __future__ import absolute_import I haven't been following this thread so someone may have mentioned that already. -- You received this message because

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
gt;> >>>>>> LOGGING = { >>>>>> 'version': 1, >>>>>> 'disable_existing_loggers': False, >>>>>> 'filters': { >>>>>> 'require_debug_false': { >>>>&g

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
'mail_admins': { >>>>> 'level': 'ERROR', >>>>> 'filters': ['require_debug_false'], >>>>> 'class': 'django.utils.log.AdminEmailHandler' >>>>> } >

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
OGIN_URL = '/login' >>>> LOGIN_REDIRECT_URL = '/' >>>> AUTH_PROFILE_MODULE = "user_accounts.UserProfile" >>>> >>>> COUNTRY_LOCALE = '' >>>> >>>> SYSTEM_SALES_TAX = 'BC' #This is the province th

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
e current premium is zero. >>> >>> # DEPRECIATED >>> INVOICE_ORDER = ('LIFE', 'AD&D', 'WI', 'LTD', 'DEPL', 'EHC', 'DENT', >>> 'EAP', 'MSP', 'OPTLF', 'OSPLIF', 'OPTADD

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
edi', >> 'payroll_extract.views') >> >> INTERNAL_IPS = ('127.0.0.1') >> >> ''' >> # RUN_TYPE is a binary flag - it can be any combination of RUN_* >> # for ex. to set RUN_DEV and RUN_TEST at the same time u

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
> > > USE_CACHE = True # enable/disable request level caching by @cache > annotation > TRACK_CALLS = False # enable/disable function call count by @cache and > @track annotations > TEST_CREATE_NEW_DUMP = True > TEST_RESTORE_DB = True > TEST_DB_TMPFS = False > TEST_LOG_FILE=

PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitan
execute(*args, **cmd_options) File "C:\Users\1\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 366, in execute self.check() File "C:\Users\1\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\ma

Hi Guys, Can anyone suggest on how to create a engine to connect to snowflakes using django? and share the settings.py modification?

2019-10-29 Thread Avinash Gaurav
Hi Guys, Can anyone suggest on how to create a engine to connect to snowflakes using django? and share the settings.py modification? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Separating remote vs local settings.py parameters - - “EMAIL”?

2019-03-16 Thread Phillip Moracha
uld be to share the SECRET_KEY publicly on GitHub > and then to use it in your production environment. > > > So here is the list of parameters to place in the separate remote > settings.py as it appears in that gist linked to above: > > >- > >SE

Re: Separating remote vs local settings.py parameters - - “EMAIL”?

2019-03-16 Thread Ahmed Ishtiaque
and at >>> this specific location >>> <https://gist.github.com/bradtraversy/cfa565b879ff1458dba08f423cb01d71#local-settings-setup>, >>> >>> here he wisely recommends separating important local development >>> configuration parameters, such as SECRE

Re: Separating remote vs local settings.py parameters - - “EMAIL”?

2019-03-16 Thread drone4four
ere he wisely recommends separating important local development >> configuration parameters, such as SECRET _KEY. Of course everyone knows how >> stupid and foolish it would be to share the SECRET_KEY publicly on GitHub >> and then to use it in your product

Re: Separating remote vs local settings.py parameters - - “EMAIL”?

2019-03-15 Thread Ahmed Ishtiaque
ecommends separating important local development > configuration parameters, such as SECRET _KEY. Of course everyone knows how > stupid and foolish it would be to share the SECRET_KEY publicly on GitHub > and then to use it in your production environment. > > > So here is the list of para

Separating remote vs local settings.py parameters - - “EMAIL”?

2019-03-15 Thread drone4four
uch as SECRET _KEY. Of course everyone knows how stupid and foolish it would be to share the SECRET_KEY publicly on GitHub and then to use it in your production environment. So here is the list of parameters to place in the separate remote settings.py as it appears in that gist linked to

Re: Missing manage.py & settings.py

2019-03-09 Thread Andréas Kühne
If you have added an app via pip install and added it to settings.py, you should not create an app with startapp - and you should definitely not create an app with the same name as a pip installed django app. That will result in conflicts. In this case startapp shouldn't be used no. Re

Re: Missing manage.py & settings.py

2019-03-08 Thread Sithembewena L. Dube
ect_name" > go inside this folder and then type > python manage.py startapp "your app name" > this command will create apps > and after this include your app inside installed apps > > On Saturday, March 2, 2019 at 6:44:05 AM UTC+5:30, jtaylor___ wrote: >> >&

Re: Missing manage.py & settings.py

2019-03-08 Thread gauravsrivastava2k17
ed apps On Saturday, March 2, 2019 at 6:44:05 AM UTC+5:30, jtaylor___ wrote: > > I pip installed a Django project, but it doesn’t have a manage.py or > settings.py. I checked the repo on GitHub, and those files don’t exist > there either. Is this an alternate way of doing a Django

Re: Missing manage.py & settings.py

2019-03-08 Thread lujate
> >>>> >>>> On Wed, Mar 6, 2019, 11:12 AM ambesh chand shahi >>> wrote: >>>> >>>>> You should first type django-admin startproject "your project name". >>>>> >>>>> Then if you are using python3

Re: Missing manage.py & settings.py

2019-03-08 Thread Andréas Kühne
d shahi >> wrote: >>> >>>> You should first type django-admin startproject "your project name". >>>> >>>> Then if you are using python3 then type python3 manage.py startapp >>>> "appname". >>>> >>>&

Re: Missing manage.py & settings.py

2019-03-07 Thread lujate
p installed >> app? >> >> >> >> On Wed, Mar 6, 2019, 11:12 AM ambesh chand shahi > wrote: >> >>> You should first type django-admin startproject "your project name". >>> >>> Then if you are using python3 then type python3 mana

Re: Missing manage.py & settings.py

2019-03-06 Thread Gil Obradors
admin startproject "your project name". >> >> Then if you are using python3 then type python3 manage.py startapp >> "appname". >> >> After that include that app in settings.py in Installed apps. >> >> >> On Tue, 5 Mar 2019, 07:29

Re: Missing manage.py & settings.py

2019-03-06 Thread lujate
quot;appname". > > After that include that app in settings.py in Installed apps. > > > On Tue, 5 Mar 2019, 07:29 lujate, wrote: > >> I created a scratch project for R&D. >> I did a runserver and confirmed the default landing page. >> I added the apps to

Re: Missing manage.py & settings.py

2019-03-06 Thread ambesh chand shahi
You should first type django-admin startproject "your project name". Then if you are using python3 then type python3 manage.py startapp "appname". After that include that app in settings.py in Installed apps. On Tue, 5 Mar 2019, 07:29 lujate, wrote: > I created a scrat

Re: Missing manage.py & settings.py

2019-03-04 Thread lujate
command? > > On Fri, Mar 1, 2019, 6:13 PM lujate wrote: > >> I pip installed a Django project, but it doesn’t have a manage.py or >> settings.py. I checked the repo on GitHub, and those files don’t exist >> there either. Is this an alternate way of doing a Django pro

Re: Missing manage.py & settings.py

2019-03-04 Thread Mario Martinez
Did you run the django-admin startproject your_project_name command? On Fri, Mar 1, 2019, 6:13 PM lujate wrote: > I pip installed a Django project, but it doesn’t have a manage.py or > settings.py. I checked the repo on GitHub, and those files don’t exist > there either. Is this an

Re: Missing manage.py & settings.py

2019-03-04 Thread lujate
I'm still pretty new with Django. I've used a few 3rd party utilities but no apps. I have it installed, and I'm working on am error in my INSTALLED_APPS now. Thanks On Mon, Mar 4, 2019, 1:13 AM Derek Pretty much *all* the apps you use in your Django project will be > installed via pip ... > > O

Re: Missing manage.py & settings.py

2019-03-03 Thread Derek
Pretty much *all* the apps you use in your Django project will be installed via pip ... On Saturday, 2 March 2019 06:00:47 UTC+2, lujate wrote: > > Interesting. I never thought about doing a pip install of an application. > I'm going to have to digest that one. > > Thanks > -- You received th

Re: Missing manage.py & settings.py

2019-03-01 Thread lujate
Interesting. I never thought about doing a pip install of an application. I'm going to have to digest that one. Thanks -- 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 e

Re: Missing manage.py & settings.py

2019-03-01 Thread Dylan Reinhold
it doesn’t have a manage.py or > settings.py. I checked the repo on GitHub, and those files don’t exist > there either. Is this an alternate way of doing a Django project that I’m > not aware of? > > FWIW, the project is django-wiki. > > TIA > > -- > You received this m

Missing manage.py & settings.py

2019-03-01 Thread lujate
I pip installed a Django project, but it doesn’t have a manage.py or settings.py. I checked the repo on GitHub, and those files don’t exist there either. Is this an alternate way of doing a Django project that I’m not aware of? FWIW, the project is django-wiki. TIA -- You received this

Re: settings.py work in local but not on the server

2019-02-06 Thread robin . leroux . 96
ME.md requirements.txt wsgi.py static/images/usitoo.png usitoo/manage.py usitoo/polls/__init__.py usitoo/polls/*{**all files regarding polls}* usitoo/usitoo/__init__.py usitoo/usitoo/settings.py usitoo/usitoo/urls.py sent 79,452 bytes received 811 bytes 160,526.00 bytes/sec total size is 76,074 speedup is

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread vineeth sagar
hs" wrote: > Am 30.11.18 um 18:50 schrieb Sandip Nath: > >> I am a newbie to Django. Using Postgresql for CRUD operations. Although >> its working but I need to write the password of my Postgresql server in the >> settings.py. How can I hide that without hampering the oper

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Carsten Fuchs
Am 30.11.18 um 18:50 schrieb Sandip Nath: I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? In your settings.py, you could

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread ljh . holmes
4 AM UTC-6, Sandip Nath wrote: > > I am a newbie to Django. Using Postgresql for CRUD operations. Although > its working but I need to write the password of my Postgresql server in the > settings.py. How can I hide that without hampering the operation? > -- You received this message b

Re: How to hide the password of postgresql in settings.py

2018-11-30 Thread Bill Freeman
You should be keeping settings.py secure. There's other stuff that shouldn't be public. That's why the django project directories are not included in the pages that the front end web server is allowed to serve, among other things. Security is tough. There's no magic ans

How to hide the password of postgresql in settings.py

2018-11-30 Thread Sandip Nath
I am a newbie to Django. Using Postgresql for CRUD operations. Although its working but I need to write the password of my Postgresql server in the settings.py. How can I hide that without hampering the operation? -- You received this message because you are subscribed to the Google Groups

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

Re: Where setting up templates directory in settings.py

2018-06-26 Thread Mikhailo Keda
> > you can use bitbucket or something similar for project sharing > there is an example of template directory settings - https://bitbucket.org/voron-raven/games/src/3fa65824be0d7fed2f8042ca189a3039ef016f28/games/settings.py#lines-102 -- You received this message because you are s

Re: Where setting up templates directory in settings.py

2018-06-26 Thread Oskar Artur
you could try to create "blog" directory in your templates folder and put the date.html in there... not sure thou as I am very beginner ;) On Tuesday, 26 June 2018 12:02:45 UTC+2, emmanuel wyckens wrote: > > Hello, > > I didn't solve my issue on adding the templates directories in setting.py. >

Where setting up templates directory in settings.py

2018-06-26 Thread emmanuel wyckens
Hello, I didn't solve my issue on adding the templates directories in setting.py. I always the same error : See my project in zip file Thanks in advance Emmanuel TemplateDoesNotExist at /blog/date blog/date.html Request Method: GET Request URL: http://127.0.0.1:8000/blog/date Django Vers

Re: Setting up Django for the first time, urls.py and settings.py

2017-10-02 Thread Kishore Srinivas
Always have the documentation with you while following the old tutorials.when I was starting Django I had big problems while using a tutorial in Django 1.7 with Django 1.10, nothing worked, but using documentation you can pretty much find what had changed -- You received this message because

Re: Setting up Django for the first time, urls.py and settings.py

2017-10-01 Thread Jani Tiainen
nds, like > ‘syncdb’ is no longer used. Now it’s ‘migrate’. Yes, Tuts+ Code is over 6 > years old, but it’s the best tutorial in terms of explanations and teaching > style. Anyways. > > I’m getting an error saying there is something wrong with my settings.py: > >> $ python ../

Setting up Django for the first time, urls.py and settings.py

2017-10-01 Thread drone4four
volved considerably. I’ve had to try different commands, like ‘syncdb’ is no longer used. Now it’s ‘migrate’. Yes, Tuts+ Code is over 6 years old, but it’s the best tutorial in terms of explanations and teaching style. Anyways. I’m getting an error saying there is something wrong with my setti

Re: DATABASE DICTIONARY in Settings.py

2017-04-04 Thread alkhairohr
anonical way. > > Regards, > > A. > > Antonis Christofideshttp://djangodeployment.com > > > On 04/03/2017 09:50 PM, alkha...@mymail.vcu.edu wrote: > > Hey everyone, > > I'm new to Django and web development overall so please bare with me. I > may be aski

Re: DATABASE DICTIONARY in Settings.py

2017-04-03 Thread Antonis Christofides
Antonis Christofides http://djangodeployment.com On 04/03/2017 09:50 PM, alkhair...@mymail.vcu.edu wrote: > Hey everyone, > > I'm new to Django and web development overall so please bare with me. I may be > asking an incredibly stupid question. > > In the DATABASES dictionary

Re: DATABASE DICTIONARY in Settings.py

2017-04-03 Thread Mike Dewhirst
On 4/04/2017 5:50 AM, alkhair...@mymail.vcu.edu wrote: Hey everyone, I'm new to Django and web development overall so please bare with me. I may be asking an incredibly stupid question. In the DATABASES dictionary in settings.py: DATABASES = { 'default': {

DATABASE DICTIONARY in Settings.py

2017-04-03 Thread alkhairohr
Hey everyone, I'm new to Django and web development overall so please bare with me. I may be asking an incredibly stupid question. In the DATABASES dictionary in settings.py: DATABASES = { 'default': { 'NAME': 'something',

Re: settings.py variables in fixtures

2015-12-28 Thread Salvatore Scaramuzzino
order to >> store some images. is there a way to use in JSON fixtures (or in >> another format) variables defined in settings.py (eg. base path of the app)? >> > > To make sure I’ve understood your use case: you want to have a JSON (or > similar format)

Re: settings.py variables in fixtures

2015-12-27 Thread Russell Keith-Magee
> > i have a fixture written in JSON and i use it to provide initial data to > my webapp. i want to provide in this fixture absolute paths in order to > store some images. is there a way to use in JSON fixtures (or in > another format) variables defined in settings.py (eg.

settings.py variables in fixtures

2015-12-27 Thread Salvatore Scaramuzzino
n order to store some images. is there a way to use in JSON fixtures (or in another format) variables defined in settings.py (eg. base path of the app)? thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Using request object in settings.py for custom logging

2015-11-27 Thread Nikunj Badjatya
Anyone with any idea how to solve this problem? Thanks in advance. -- 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. T

Re: Using request object in settings.py for custom logging

2015-11-25 Thread Nikunj Badjatya
og >> /var/log/client-2/django.log >> /var/log/client-3/django.log >> >> >> >> The request object has information about the logged in user (and thus >> client). These inturn are stored in a mysql database. >> >> How can django log file pat

Re: Using request object in settings.py for custom logging

2015-11-25 Thread Jani Tiainen
o into '/var/log/client-1/django.log' and so on for other clients ? Using Django 1.6.11 and Python 2.7. 'LOGGING' is defined in settings.py. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Using request object in settings.py for custom logging

2015-11-25 Thread Nikunj Badjatya
file path be modified dynamically such that when > client-1 is using the application, his logs go into > '/var/log/client-1/django.log' and so on for other clients ? > > Using Django 1.6.11 and Python 2.7. > 'LOGGING' is defined in settings.py. > > Thanks

Re: Using request object in settings.py for custom logging

2015-11-24 Thread Jani Tiainen
Django 1.6.11 and Python 2.7. 'LOGGING' is defined in settings.py. Thanks. -- 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+unsub

Using request object in settings.py for custom logging

2015-11-24 Thread Nikunj Badjatya
Using Django 1.6.11 and Python 2.7. 'LOGGING' is defined in settings.py. Thanks. -- 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-use

Re: settings.py TEMPLATES DIRS

2015-08-01 Thread Gary Roach
m. I am using > Ninja-ide as my ide. When I enter the following in the TEMPLATES section > the settings.py file I get an invalid syntax error: > > 'DIRS': [os.path.join(BASE_DIR, 'templates'], > > > Since the DIRS entry is directly out of a tutorial I'm n

Re: settings.py TEMPLATES DIRS

2015-08-01 Thread James Schneider
You're missing a closing ) after 'templates'... -James On Jul 31, 2015 11:59 PM, "Gary Roach" wrote: > Hi > > I'm using Django 1.8 and python 2-7 on a Debian Linux system. I am using > Ninja-ide as my ide. When I enter the following in the TEMPLAT

settings.py TEMPLATES DIRS

2015-07-31 Thread Gary Roach
Hi I'm using Django 1.8 and python 2-7 on a Debian Linux system. I am using Ninja-ide as my ide. When I enter the following in the TEMPLATES section the settings.py file I get an invalid syntax error: 'DIRS': [os.path.join(BASE_DIR, 'templates'], Since the DIRS e

Re: Why sqlite time is different from my settings.py TIME_ZONE?

2015-06-02 Thread Dan Tagg
l so i'm using this field. > > date = models.DateTimeField() > > > On the result template (results.html), the time is correct (localtime > or TIME_ZONE in my settings.py) > The problem is, when i check the database on Django admin page and sqlite > db file, it seems

Why sqlite time is different from my settings.py TIME_ZONE?

2015-06-02 Thread Hyunseo Yang
I'm using Sqlite for my project database. I need date and time in my model so i'm using this field. date = models.DateTimeField() On the result template (results.html), the time is correct (localtime or TIME_ZONE in my settings.py) The problem is, when i check the database on Dj

Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2015-03-14 Thread Thế Giới Âm Nhạc
, June 21, 2013 9:18:59 PM UTC-4, ayeowch wrote: >> >> TEMPLATE_CONTEXT_PROCESSORS is not there by default in your project's >> settings.py. It's defined in the django/conf/global_settings.py, see >> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-T

Re: template_dir , template_loader missing in settings.py

2015-02-25 Thread 严超
//weibo.com/herewearenow <http://weibo.com/herewearenow>* > *--* > > 2015-02-25 15:23 GMT+08:00 Priya Panthi : > >> hello all, I am beginner in django..As template_dir , template_loader are >> missing in settings.py, I am facing lots of problems..Please

Re: template_dir , template_loader missing in settings.py

2015-02-25 Thread 严超
ir , template_loader are > missing in settings.py, I am facing lots of problems..Please kindly suggest > how I should include these. It would be a great help. I have spent hours > sorting it out but in vain..Thanks in advance.. > > -- > You received this message because you are subsc

template_dir , template_loader missing in settings.py

2015-02-25 Thread Priya Panthi
hello all, I am beginner in django..As template_dir , template_loader are missing in settings.py, I am facing lots of problems..Please kindly suggest how I should include these. It would be a great help. I have spent hours sorting it out but in vain..Thanks in advance.. -- You received this

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Guilherme Leal
s significant. >>> >>> You will also need to set SESSION_COOKIE_DOMAIN = '.example.com' so >>> cookies work across subdomains. >>> >>> >>> On Thursday, February 5, 2015 at 4:12:24 AM UTC-8, Abraham Varricatt >>> wrote: >

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Abraham Varricatt
o >> cookies work across subdomains. >> >> >> On Thursday, February 5, 2015 at 4:12:24 AM UTC-8, Abraham Varricatt >> wrote: >>> >>> Hello, >>> >>> I'm trying to implement custom subdomains on a customer site and am >>> havin

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Guilherme Leal
C-8, Abraham Varricatt wrote: >> >> Hello, >> >> I'm trying to implement custom subdomains on a customer site and am >> having trouble understanding how the HOST option in settings.py works. The >> requirement is that if a user logs in, they should see their own

Re: subdomains and HOST in settings.py?

2015-02-05 Thread mdj
4:12:24 AM UTC-8, Abraham Varricatt wrote: > > Hello, > > I'm trying to implement custom subdomains on a customer site and am having > trouble understanding how the HOST option in settings.py works. The > requirement is that if a user logs in, they should see their own username

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Abraham Varricatt
@Guilherme Leal, Yes, that's correct. Do you have any ideas? -Abraham V. On Thu, Feb 5, 2015 at 9:15 PM, Guilherme Leal wrote: > Basiacally, what you want to do is change the request subdomain based on > the user that logs on to the app. > > Ex: the url that hosts the login form (or whatever

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Guilherme Leal
Basiacally, what you want to do is change the request subdomain based on the user that logs on to the app. Ex: the url that hosts the login form (or whatever it is) is like "http://exemple.com/login";. After the user correctly logs in, every request will be made to de url "http://.exemple.com"

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Vijay Khemlani
I'm not following, in the Django settings there is no "HOST" entry (other than the one used to connect to the database) https://docs.djangoproject.com/en/1.7/ref/settings/ If you're talking about "ALLOWED_HOSTS", then that one is only a whitelist of allowed domains. Try and describe your problem

Re: subdomains and HOST in settings.py?

2015-02-05 Thread Abraham Varricatt
Ok, I think I goofed up asking the question here. I noticed that there was a HOST setting defined in the django documentation and assumed it was the same thing, but some more code investigation, reveals otherwise. But I *am* running into a tangential issue. I mentioned that if I set the value

subdomains and HOST in settings.py?

2015-02-05 Thread Abraham Varricatt
Hello, I'm trying to implement custom subdomains on a customer site and am having trouble understanding how the HOST option in settings.py works. The requirement is that if a user logs in, they should see their own username as the subdomain. So for example if we have 3 users - mark, alic

Re: Import error in settings.py

2014-10-23 Thread Collin Anderson
You can also do this: import importlib module_name, name = path.rsplit('.', 1) return getattr(importlib.import_module(module_name), name) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: Import error in settings.py

2014-10-22 Thread Felix Unchained
Just thought you might get a kick out of the fact that I just found this very useful – 4 years later. Thanks. On Tuesday, February 12, 2008 7:27:45 PM UTC-8, Julien wrote: > > Great! Thanks a lot, it worked! > > Here's a little function that I made and that is quite helpful: > > def get_class(c

Re: settings.py

2014-09-08 Thread ngangsia akumbo
i am trying to host build an app to host it on heroku On Monday, September 8, 2014 6:21:49 PM UTC+1, Andrew Pinkham wrote: > > Hi Ngangsia, > > On Sep 8, 2014, at 12:16 PM, ngangsia akumbo > wrote: > > when i run the > > django-admin.py startproject this is the settings file i have > > I've g

Re: settings.py

2014-09-08 Thread Andrew Pinkham
Hi Ngangsia, On Sep 8, 2014, at 12:16 PM, ngangsia akumbo wrote: > when i run the > django-admin.py startproject this is the settings file i have I've glanced through the file. It looks fine to me, but I may have missed something. > Please i need some help here dont understand what is going o

settings.py

2014-09-08 Thread ngangsia akumbo
when i run the django-admin.py startproject this is the settings file i have """ Django settings for bphotel project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/

Re: settings.configure() does not allow me to access custom variables in settings.py

2014-07-07 Thread Bill Freeman
ler plate in my project's __init__.py file, so I get a lot of stuff. Just check sys.modules and see if the import load is too much for you before you go re-implementing the django.conf mechanisms. On Fri, Jul 4, 2014 at 5:12 PM, Chen Xu wrote: > Hi Everyone, > I want to access some

Re: settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Mike Dewhirst
On 5/07/2014 7:12 AM, Chen Xu wrote: Hi Everyone, I want to access some variables in my settings.py without starting my server, I know I will have to run settings.configure(); however, running settings.configure() does not allow me to access my custom variables. What should I do with that

settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Chen Xu
Hi Everyone, I want to access some variables in my settings.py without starting my server, I know I will have to run settings.configure(); however, running settings.configure() does not allow me to access my custom variables. What should I do with that. Thanks -- ⚡ Chen Xu ⚡ -- You received

Using time.tzset() in settings.py

2013-12-02 Thread Stephen
com.au/2010/03/improved-wsgi-script-for-use-with.html*) My initial solution is to add: from time import tzset os.environ['TZ'] = TIME_ZONE tzset() to settings.py before dateutil.tz gets imported so that the correct utcoffset is used. Is this the best solution? Also, this issue was fa

Re: Problems with default settings.py file

2013-12-02 Thread Blake Adams
Thanks Felipe! On Monday, December 2, 2013 11:03:54 AM UTC-5, Felipe Coelho wrote: > > 2013/12/2 Blake Adams > > >> Hello I am a python noob going through the getttingstarted with django >> tutorial. >> >> For some reason When I start a new project, the defau

Re: Problems with default settings.py file

2013-12-02 Thread Felipe Coelho
2013/12/2 Blake Adams > Hello I am a python noob going through the getttingstarted with django > tutorial. > > For some reason When I start a new project, the default settings.py file > is missing a lot of default settings (Admin, Media, Some of the Databse > info, Statis_

Problems with default settings.py file

2013-12-02 Thread Blake Adams
Hello I am a python noob going through the getttingstarted with django tutorial. For some reason When I start a new project, the default settings.py file is missing a lot of default settings (Admin, Media, Some of the Databse info, Statis_file, Logging, etc.). Im looking for any direction on

Re: Logging warnings inside settings.py

2013-11-03 Thread Arnold Krille
On Fri, 1 Nov 2013 10:11:05 -0700 Jon Dufresne wrote: > I am trying to log warnings inside settings.py. I want to log warnings > when settings (from an outside source) are not provided, but the > application can continue. Is this possible? It seems like this might > not work as logg

Logging warnings inside settings.py

2013-11-01 Thread Jon Dufresne
Hi, I am trying to log warnings inside settings.py. I want to log warnings when settings (from an outside source) are not provided, but the application can continue. Is this possible? It seems like this might not work as logging requires settings.py in order to be configured, but I want to log

  1   2   3   4   5   >