Find a file
Arnold Dechamps b169779075
Forgot css (#55)
* [FIX] Forgot the CSS

* [FIX] CSS

* [FIX] temp fix until next broken
2024-05-18 01:47:28 +02:00
.github Rolling back to stuff that actually works (#49) 2024-05-11 03:14:58 +02:00
static [FIX] Forgot the CSS (#53) 2024-05-18 01:39:30 +02:00
staticfiles Forgot css (#55) 2024-05-18 01:47:28 +02:00
tldtest Making darmode permanent (#52) 2024-05-17 19:25:13 +02:00
tldtester Trying to fix unicode (#36) 2024-05-07 14:23:06 +02:00
.gitignore Docker Ok. Testing CI/CD should work 2024-03-26 17:16:10 +01:00
CNAME Create CNAME 2024-03-26 07:37:04 +01:00
config.example.py CSRF 2024-03-26 22:30:07 +01:00
docker-compose.yml Merge pull request #24 from tldtest/docker-compose 2024-04-10 04:32:24 +02:00
Dockerfile changing stuff 2024-03-26 09:38:14 +01:00
entrypoint.sh Postgres-docker 2024-03-26 16:11:08 +01:00
env.prod.db.example Docker Ok. Testing CI/CD should work 2024-03-26 17:16:10 +01:00
LICENSE initial stuff for start 2024-02-11 19:21:12 +01:00
manage.py basic django stuff 2024-02-11 19:27:45 +01:00
package-lock.json statics 2024-03-26 07:39:17 +01:00
package.json statics 2024-03-26 07:39:17 +01:00
README.md documenting static files 2024-03-29 23:40:20 +01:00
requirements.in Bump django from 5.0.4 to 5.0.6 (#40) 2024-05-11 02:17:36 +02:00
requirements.txt Bump django from 5.0.4 to 5.0.6 (#40) 2024-05-11 02:17:36 +02:00
tailwind.config.js Tailwindcss 2024-02-26 09:55:19 +01:00

This is the main website for tldtest.net

This site has the purpose of testing the response time of TLD nameservers everywhere in the world.

To run in test environment :

virtualenv -p python3.11 venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

When running in debug False :

./manage.py collectstatic
./manage.py runserver --insecure

Static files :

The static files need to be hosted outside the gunicorn. So I choose to store them on github pages (for now). Which means that every time the statics get changed, one need to run :

./manage.py collectstatic
git add staticfiles/.

CSS :

To install the CSS bundler :

npm install -D tailwindcss
npx tailwindcss init

To update CSS files (they use the tailwinds framework)

npx tailwindcss -i ./static/src/input.css -o ./static/src/output.css