Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
Actions
Automate any workflow
Packages
Host and manage packages
Security
Find and fix vulnerabilities
Codespaces
Instant dev environments
GitHub Copilot
Write better code with AI
Code review
Manage code changes
Issues
Plan and track work
Discussions
Collaborate outside of code
Explore
All features
Documentation
GitHub Skills
Blog
Solutions
By size
Enterprise
Teams
Startups
By industry
Healthcare
Financial services
Manufacturing
By use case
CI/CD & Automation
DevOps
DevSecOps
Resources
Resources
Learning Pathways
White papers, Ebooks, Webinars
Customer Stories
Partners
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
Advanced Security
Enterprise-grade security features
GitHub Copilot
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mozilla
/
kitsune
Public
Notifications
You must be signed in to change notification settings
Fork
710
Star
1.3k
Code
Issues
20
Pull requests
11
Actions
Projects
1
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
main
Breadcrumbs
kitsune
/
manage.py
Blame
Blame
Latest commit
History
History
executable file
·
31 lines (26 loc) · 957 Bytes
main
Breadcrumbs
kitsune
/
manage.py
Top
File metadata and controls
Code
Blame
executable file
·
31 lines (26 loc) · 957 Bytes
Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
import
os
import
sys
import
traceback
# Now we can import from third-party libraries.
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'kitsune.settings'
)
# MONKEYPATCH! WOO HOO!
# Need this so we patch before running Django-specific commands which
# then result in a circular import.
try
:
from
kitsune
.
sumo
.
monkeypatch
import
patch
# noqa
patch
()
except
ImportError
:
print
(
'OH NOES! There was an import error:'
)
print
(
''
)
print
(
''
.
join
(
traceback
.
format_exception
(
*
sys
.
exc_info
())))
if
'VIRTUAL_ENV'
in
os
.
environ
:
print
(
'Have you installed requirements? Are they up-to-date?'
)
else
:
print
(
'Have you activated your virtual environment?'
)
sys
.
exit
(
1
)
# Import for side-effect: configures our logging handlers.
from
kitsune
import
log_settings
# noqa
if
__name__
==
"__main__"
:
from
django
.
core
.
management
import
execute_from_command_line
execute_from_command_line
(
sys
.
argv
)
You can’t perform that action at this time.