September 2018

2018-09-27 03:26 (7 years ago)
Rebuild Python3.5 to Fix pip install uwsgi Error on Ubuntu18

Override the URL patterns (`urls.py`) in a Django test to inject a test-only view — use `@override_settings(ROOT_URLCONF=...)`.

Django
2018-09-27 02:37 (7 years ago)
Preventing "table already exists" error when canceling migrations in Django tests

Avoid `table already exists` failures in Django tests when running with `--keepdb` after cancelling migrations — how to forcibly reset the test DB migration state.

Django
2018-09-25 10:10 (7 years ago)
Unit Testing Abstract Models in Django

Django: Best way to unit-test an abstract model - Stack Overflowhttps://stackoverflow.com/questions/4281670/django-best-way-to-unit-test-an-abstract-model

2018-09-21 03:37 (7 years ago)
Replacing Version Numbers with Python re (Regex Replacement Only Within Parentheses)

Use a lambda callback with Python's `re.sub` to replace only a captured group (e.g. a version number) inside a larger pattern.

2018-09-19 06:33 (7 years ago)
Apache2 URL without .html returns the content of the html file

MultiViews is enabled

2018-09-04 01:53 (7 years ago)
When Starting AD Domain Controller (samba-ad-dc) on Ubuntu 18 with Samba 4.7, It Fails Due to DNS Errors

When you start samba-ad-dc using the command `$ sudo systemctl start samba-ad-dc`, and check either /var/log/samba/log.smbd or /var/log/samba/%m, it appears that port 53 is unavailable.

2018-09-03 11:11 (7 years ago)
When Apache on Ubuntu 18.04 is Forcefully Terminated

Apache suddenly crashes, and upon checking the logs, I found the following messages: "AH00050: Child 7815 returned a Fatal error... Apache is exiting!" and "AH02818: MPM run failed, exiting."

2018-09-03 08:36 (7 years ago)
What to Do If Your Update to Ubuntu 18.04 Gets Stuck

When `do-release-upgrade` to Ubuntu 18.04 hangs on libnih1 or upstart packages, here is how to unstick and complete the release upgrade.

Categories

Archive