Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Flask_User_Reg
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
Mitchell Moore
Flask_User_Reg
Commits
abbfe53f
Commit
abbfe53f
authored
5 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Update readme
parent
691c8ec1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+7
-5
7 additions, 5 deletions
README.md
app/__init__.py
+2
-0
2 additions, 0 deletions
app/__init__.py
with
9 additions
and
5 deletions
README.md
+
7
−
5
View file @
abbfe53f
...
...
@@ -7,15 +7,17 @@ git clone https://gitlab.rc.uab.edu/mmoo97/flask_user_reg.git
```
## Prerequisites
-
Ensure
`pip`
is installed (see: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ )
-
Install Flask using the
`pip`
command. Note, to install flask in your own
`$HOME`
use
`pip install --user Flask`
```
pip install Flask
-
Ensure
`pip`
is installed (see: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ ).
-
Ensure you have created a virtual environment called
`venv`
setup within the cloned project.
-
Install Flask and other dependencies using the following:
```
pip intall -p requirements.txt
```
-
Note, to install flask in your own
`$HOME`
use
`pip install --user Flask`
.
## Starting the virtual machine for Flask
-
Change to the
`f
ormWork
`
directory
-
Change to the
`f
lask_user_reg
`
directory
.
-
then start virtual machine:
```
source venv/bin/activate
...
...
This diff is collapsed.
Click to expand it.
app/__init__.py
+
2
−
0
View file @
abbfe53f
...
...
@@ -16,6 +16,7 @@ def create_app(config_name):
app
=
Flask
(
__name__
)
Bootstrap
(
app
)
global
return_url
return_url
=
''
...
...
@@ -24,6 +25,7 @@ def create_app(config_name):
global
return_url
print
(
username
,
name
,
return_url
,
file
=
sys
.
stdout
)
# Deliver arguments to script.
tempString
=
'
ssh ohpc sudo /opt/ohpc_user_create/user_create
'
+
username
+
'
\"
'
+
name
+
'
\"
'
print
(
tempString
,
file
=
sys
.
stdout
)
...
...
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