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
# This opens a command prompt within the container.
103
+
# This opens a command prompt within the container
104
104
```
105
105
106
-
2. Django Application:
106
+
2. Update the Django Application:
107
107
108
108
(Run these commands within the container.)
109
109
110
110
```sh
111
111
python manage.py migrate
112
-
# For projects that install apps
113
-
# e.g. ECEP installs News/Blog
114
-
npm ci
115
-
npm run build:css --project="custom_project_dir"
116
-
# If output includes
117
-
# "Input Error: You must pass a valid"
118
-
# then double check you have the directory
119
-
# `taccsite_cms/…/static/…/css/src`
112
+
python manage.py createsuperuser
113
+
# To use default "Username" and skip "Email address", press Enter at both prompts.
114
+
# At "Password" prompts, you may use an easy-to-remember password.
120
115
python manage.py collectstatic --no-input
116
+
121
117
```
122
118
123
-
3. Django CMS:
119
+
3. Open Django CMS:
124
120
1. Open http://localhost:8000/.
125
121
2. Verify anything specific to the custom project is present e.g.
126
122
- logo
@@ -132,41 +128,15 @@ Set up a new local CMS instance.
132
128
> A local machine CMS will be empty. It will **not** have content from staging nor production. To have that, follow and adapt instructions to [copy a database](https://confluence.tacc.utexas.edu/x/W4DZDg).
133
129
134
130
>**Note**
135
-
> A local machine CMS does **not** include **nor** integrate with an instance of [Core Portal]. There are no reliable instructions to do either. **Help welcome.**
131
+
> A local machine CMS does **not** include **nor** integrate with an instance of [Core Portal]. To attempt to do that, follow [How to Use a Custom Docker Compose File](https://github.com/TACC/Core-CMS/wiki/How-to-Use-a-Custom-Docker-Compose-File) and [Locally Develop CMS Portal Docs](https://github.com/TACC/Core-CMS/wiki/Locally-Develop-CMS---Portal---Docs). **Help welcome.**
136
132
137
133
## Update Project
138
134
139
-
To update an existing CMS instance.
140
-
141
-
### New Major [Core CMS] Version (or v3.12)
142
-
143
-
Read [Upgrade Project] for developer instructions.
Copy file name to clipboardexpand all lines: docs/debug-project.md
+13
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,16 @@
9
9
10
10
1. Review content of `/taccsite_custom/custom_project_dir/static/custom_project_dir/css/build`.
11
11
2. Verify that content is also _in the container_ at `/static/custom_project_dir/css/build`.
12
+
13
+
> **Note**
14
+
> You will never see `/static/*/css/src`, because [this app ignores `src/`][ignore-src-dirs] when [collecting static files](#collect-static-files). This is done so templates can **not** load load source files.
Copy file name to clipboardexpand all lines: docs/run-multiple-projects.md
+9-13
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
-
# Run Project
1
+
# Run Multiple Projects
2
2
3
-
## Individual Projects
4
-
5
-
No developer instruction beyond those for Core CMS.
6
-
7
-
## Multiple Projects
3
+
## One at a Time
8
4
9
5
> **Note**
10
6
> By default, multiple projects can not be run simultaneously.[^1]
@@ -39,13 +35,7 @@ To stop one project, and run another:
39
35
>**Warning**
40
36
> With these instructions, if a project has different apps installed, and especially if you used those apps on your local CMS, you will likely encounter an error. This document can **not**help you solve such an error.[^1]
41
37
42
-
```sh
43
-
python manage.py migrate
44
-
npm run build:css --project="custom_project_dir"
45
-
python manage.py collectstatic --no-input
46
-
```
47
-
48
-
[^1]: If you want to run multiple projects simultaneously, and avoid the Warning for multiple projects, see [Simultaneous Projects](#simultaneous-projects).
@@ -57,3 +47,9 @@ To run multiple projects simultaneously:
57
47
1. Create another clone of [Core CMS].
58
48
2. Set up the CMS in that clone.
59
49
3. Set up the other project in that CMS.
50
+
51
+
[^1]: If you want to run multiple projects simultaneously, and avoid the Warning for multiple projects, see [Simultaneous Projects](#simultaneous-projects).
0 commit comments