mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[PR #515] [MERGED] Poc setup django on init #4217
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/515
Author: @cdvv7788
Created: 10/26/2020
Status: ✅ Merged
Merged: 11/28/2020
Merged by: @pirate
Base:
master← Head:POC-setup-django-on-init📝 Commits (3)
e1d0b8bfeat: Initialize django at the beginninga6bee5ffeat: Move setup_django to an inner modulef6ce1defix: archivebox version was being called as root📊 Changes
5 files changed (+8 additions, -15 deletions)
View changed files
📝
Dockerfile(+2 -1)📝
archivebox/cli/__init__.py(+4 -0)📝
archivebox/index/sql.py(+1 -8)📝
archivebox/main.py(+0 -5)📝
tests/fixtures.py(+1 -1)📄 Description
Summary
Initializing django on cli init, and removing it from internal functions.
The in-memory database may be required at a later point (when we start saving the ArchiveResults to the database) but at this point, this seems to work and no test is broken. Maybe we can remove all of the
setup_djangocalls in this PR and work with that as a basis for the next iteration. WDYT @pirate ?Related issues #496 #510
Changes these areas
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.