How to "un-export" something in Python
Question: Following a django tutorial, I entered these two lines in my terminal:

    
    
    export PYTHONPATH=$PYTHONPATH:/var/www/djangoapp:/var/www/djangoapp/app
    export DJANGO_SETTINGS_MODULE=app.settings.settings
    

I did't know what exactly I was doing. The problem is that when I want to
execute the **managy.py** file in a Django app, I get the following output:

    
    
    ImportError: Could not import settings 'app.settings.settings' 
    (Is it on sys.path? Is there an import error in the settings file?): 
    No module named settings.settings
    

Since this error started after adding those lines, I want to "rollback" those
commands.

How should I do that?

Thanks in advance!


Answer: This is not a python question. It's a shell question, probably bash or perhaps
ksh or zsh.

Try "unset variablename", like "unset PYTHONPATH".

