1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

nvm

Discussion in 'Programming' started by AdviceForParadise, May 23, 2017.

  1. #1
    I am getting the error when trying to runserver or migrate:
    django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
    SEMrush
    Although the SECRET_KEY field is not empty, this is the settings.py file

    SECRET_KEY =  'secret_key'
    
    # SECURITY WARNING: don't run with debug turned on in production!
    DEBUG = True
    
    ALLOWED_HOSTS = []
    
    
    # Application definition
    
    INSTALLED_APPS = [   
        'blogs.apps.BlogsConfig',
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        'django.contrib.sites.models.Site',
        'django_comments',
        'mptt',
        'tagging',
        'zinnia',
    ]
    Code (markup):
    When i run a different project, i do not receive this error and it runs fine, it only happens with the zinnia app.

    Any help would be appreciated.
     
    AdviceForParadise, May 23, 2017 IP
    SEMrush
  2. AdviceForParadise

    AdviceForParadise Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    nvm, its fixed... :oops:
     
    AdviceForParadise, May 23, 2017 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    23,637
    Likes Received:
    3,190
    Best Answers:
    89
    Trophy Points:
    615
    #3
    The ettiquette in forums is that you post again with your fix so others can learn from your experience. After all, if you weren't able to find the solution by searching then it will help the next person with the problem.
     
    sarahk, Aug 26, 2017 IP
    ThePHPMaster likes this.