deployez_une_application_django's Issues
NameError: name 'BASE_ROOT' is not defined
Bonjour,
Je tente de suivre votre formation sur OC mais j'ai quelques soucis avec la commande
./manage.py collectstatic
J'obtiens les traces suivantes :
`(env) cyril@vps723048:~/disquaire$ ./manage.py collectstatic
Traceback (most recent call last):
File "./manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/home/cyril/disquaire/env/lib/python3.6/site-packages/django/core/management/init.py", line 363, in execute_from_command_line
utility.execute()
File "/home/cyril/disquaire/env/lib/python3.6/site-packages/django/core/management/init.py", line 307, in execute
settings.INSTALLED_APPS
File "/home/cyril/disquaire/env/lib/python3.6/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/home/cyril/disquaire/env/lib/python3.6/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/cyril/disquaire/env/lib/python3.6/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/home/cyril/disquaire/env/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/cyril/disquaire/disquaire_project/settings.py", line 144, in
STATIC_ROOT = os.path.join(BASE_ROOT, 'staticfiles')
NameError: name 'BASE_ROOT' is not defined
`
Est-ce que j'ai loupé une étape svp ? j'ai relu plusieurs fois le cours sans succés.
merci
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.