Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Asso Portal Dev 2018
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabrice Salvaire
Asso Portal Dev 2018
Commits
7d0318a5
Commit
7d0318a5
authored
6 years ago
by
Fabrice Salvaire
Browse files
Options
Downloads
Patches
Plain Diff
fixed manage-project
parent
70e67252
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ClimbingAssoPortalSite/ProjectManager/Actions.py
+11
-12
11 additions, 12 deletions
ClimbingAssoPortalSite/ProjectManager/Actions.py
with
11 additions
and
12 deletions
ClimbingAssoPortalSite/ProjectManager/Actions.py
+
11
−
12
View file @
7d0318a5
...
...
@@ -70,7 +70,6 @@ class Shell(cmd.Cmd):
response
=
default
return
response
==
'
y
'
##############################################
def
_manage
(
self
,
*
args
):
...
...
@@ -109,7 +108,7 @@ class Shell(cmd.Cmd):
'
Drop all migrations
'
self
.
_print_banner
(
'
Drop migrations
'
)
pattern
=
str
(
BASE_DIR
.
joinpath
(
APPLICATION
,
'
migrations
'
,
'
0*.py
'
))
pattern
=
str
(
BASE_DIR
.
joinpath
(
Defaults
.
APPLICATION
,
'
migrations
'
,
'
0*.py
'
))
migrations
=
glob
.
glob
(
pattern
)
migrations
.
sort
()
for
path
in
migrations
:
...
...
@@ -154,8 +153,8 @@ class Shell(cmd.Cmd):
if
args
is
None
:
# superuser = create_superuser_parser.get_default('superuser')
# superuser_email = create_superuser_parser.get_default('superuser_email')
superuser
=
SUPERUSER
superuser_email
=
SUPERUSER_EMAIL
superuser
=
Defaults
.
SUPERUSER
superuser_email
=
Defaults
.
SUPERUSER_EMAIL
else
:
superuser
=
args
.
superuser
superuser_email
=
args
.
superuser_email
...
...
@@ -174,7 +173,7 @@ class Shell(cmd.Cmd):
'
Load data
'
self
.
_print_banner
(
'
Load Data
'
)
# pattern = str(BASE_DIR.joinpath(APPLICATION, 'fixtures', '*.json'))
# pattern = str(BASE_DIR.joinpath(
Defaults.
APPLICATION, 'fixtures', '*.json'))
pattern
=
str
(
BASE_DIR
.
joinpath
(
'
fixtures
'
,
'
*.json
'
))
fixtures
=
glob
.
glob
(
pattern
)
fixtures
.
sort
()
...
...
@@ -200,7 +199,7 @@ class Shell(cmd.Cmd):
self
.
_print_banner
(
'
Create initial revisions
'
)
self
.
_manage
(
'
createinitialrevisions
'
,
APPLICATION
+
'
.UserProfile
'
,
Defaults
.
APPLICATION
+
'
.UserProfile
'
,
'
--comment
'
,
'
Initial revision.
'
)
...
...
@@ -235,9 +234,9 @@ class Shell(cmd.Cmd):
'
Run all
'
self
.
check
()
self
.
migrate
()
self
.
collect_static
()
self
.
create_superuser
()
self
.
load_data
()
self
.
create_initial_revisions
()
self
.
do_
check
()
self
.
do_
migrate
()
self
.
do_
collect_static
()
self
.
do_
create_superuser
()
self
.
do_
load_data
()
self
.
do_
create_initial_revisions
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment