Code Monkey home page Code Monkey logo

Comments (6)

fatpacket avatar fatpacket commented on May 30, 2024 1

Im on

from jawanndenn.

hartwork avatar hartwork commented on May 30, 2024 1

@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.

hartwork avatar hartwork commented on May 30, 2024

The answer is probably "yes" but I'm not sure what the actual question is here πŸ˜„

from jawanndenn.

fatpacket avatar fatpacket commented on May 30, 2024

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.

hartwork avatar hartwork commented on May 30, 2024

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.

hartwork avatar hartwork commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.