Comments (6)
Im on
from jawanndenn.
@fatpacket with #727 merged now, here's a proof of concept of how one could use jawanndenn as an integrated Django app rather than a standalone Django project as of today. On a Bash Linux terminal:
cd "$(mktemp -d)"
python3.10 -m venv venv
source venv/bin/activate
git clone --depth 1 https://github.com/hartwork/jawanndenn
pip install -e ./jawanndenn
django-admin startproject p1
echo 'INSTALLED_APPS += ["jawanndenn"]' >> p1/p1/settings.py
echo $'from pkg_resources import resource_filename\nTEMPLATES[0]["DIRS"] += [resource_filename("jawanndenn", "static")]' >> p1/p1/settings.py
echo $'from django.urls import include, path\nurlpatterns += [path("jawanndenn/", include("jawanndenn.urls"))]' >> p1/p1/urls.py
./p1/manage.py migrate
./p1/manage.py runserver &
chromium http://127.0.0.1:8000/jawanndenn/ &
I have tested that locally, and it seemed to work as expected. So it is possible as of today.
For transparency I would like to note that I still consider "project mode" the primary target of jawanndenn, not "app mode". New ways of re-usability β an increase in surface β comes at a maintenance cost, and I will have to keep these costs in proportion.
I suggest that from here that we make dedicated tickets for any more details that may need feasible adjustment and stick to e-mail and Jitsi for big picture aspects and details about your very setup. Closingβ¦ π»
from jawanndenn.
The answer is probably "yes" but I'm not sure what the actual question is here π
from jawanndenn.
Fair and you answered it. I guess the hope would be for an enhancement that might be a self contained app with or without the setup routine that could be copied into an existing site, make migrations, migrate and have some urls that are now accessible.
I am sure I could try to dissect it post install and copy over the pieces and see what happens
from jawanndenn.
I'm reading that as "let me have a closer look, I'll get back to you with more info later". Is that what you meant?
from jawanndenn.
PS: My GitHub profile has my e-mail address if you would like to jump on a https://meet.jit.si/ call in English or German, now or later.
from jawanndenn.
Related Issues (20)
- missing rapid-json dependency for pip HOT 3
- Add ternary choice "maybe/dunno" HOT 4
- Feature: Allow removing existing votes HOT 6
- Docker image issue HOT 2
- Footer blocks access to voting controls (with many votes) HOT 2
- docker-compose installation results in 'ImportError: No module named main' HOT 3
- "docker-compose up --build" fails with docker-compose 2.x.x (but not 1.x.x) HOT 2
- Domain Subfolder HOT 7
- Where can ALLOWED_HOSTS be changed for testing? HOT 2
- Migrate from bottle to Django HOT 1
- [docker] Make Dockerfile and docker-compose.yml run containers as unproviliged user HOT 1
- API ? HOT 14
- Scroll? HOT 3
- Error 500 when pasting JSON with single surrogate characters
- Detailed Installation Instructions HOT 4
- Feature Request: Using images + text as voting options. HOT 1
- Enable "matchmaking" capabilities. HOT 1
- Footer should include a possibility to insert an impressum HOT 1
- handling timezones HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jawanndenn.