Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
sergio_101
@sergio_101@social.sixdegreesofohio.com  ·  activity timestamp 2 weeks ago

I finally wrote and deployed my first #django app this week.

I have played with #rails and #phoenix for the past few decades, but I haven’t dug hard into django as every app i have worked on or overseen would not benefit much from the admin interface.

I am the only one working on this app, and it's for me only, and I didn't care if the admin interface adhered to a very specific design spec. In fact, i am the only one wjho will probably ever see the admin interface.

More attached…

  • Copy link
  • Flag this post
  • Block
sergio_101
@sergio_101@social.sixdegreesofohio.com replied  ·  activity timestamp 2 weeks ago

#django #rails #phoenix

in all, I spent about three days to go from sketch to deployed app. Most of that was spent figuring out how non-trivially connect to @digitalocean Spaces.

The rest was really not bad.

if you have already been writing software for a bazillion years, and understand a few webframeworks, here are a few links that will get you up and running (and done):

https://www.mostlypython.com/django-from-first-principles-2/

https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform#step-5-mdash-deploying-your-static-files

@ehmatthes

  • Copy link
  • Flag this comment
  • Block
sergio_101
@sergio_101@social.sixdegreesofohio.com replied  ·  activity timestamp 2 weeks ago

#django #rails #phoenix

Deploying wasn't trivial, but it wasn't bad. It pretty much went like any first time monkeying with an unfamiliar tech.

Keep a chatbot handy and dump error logs there, and you’ll be up and running quickly.

i have several projects coming up that don't need a massively spec back end. I will most definitely use #django for these.

I should mention that i used #TailwindCSS for this project, and the set up for that was pretty much effortless.

..more..

  • Copy link
  • Flag this comment
  • Block
sergio_101
@sergio_101@social.sixdegreesofohio.com replied  ·  activity timestamp 2 weeks ago

#django #rails #phoenix

every other framework i have used had the concept of "environments" where you could have several configurations to choose from.

It's not hard to overcome. you can maintain a local .env file to set up the app in dev mode locally. but i feel like it would lbe clearer with multiple settings files.

I ended up deploying to @digitalocean #AppPlatform . I didn't shop around for options at all.

@digitalocean has a great document on how to deploy, and it works.

  • Copy link
  • Flag this comment
  • Block
sergio_101
@sergio_101@social.sixdegreesofohio.com replied  ·  activity timestamp 2 weeks ago

#django #rails #phoenix

This app was a quick burn with little complexity. I have always read that deploying was very difficult, so i kept away from #django.

some takes about crafting in #django

- Django doesn't hold tight to the conventtion over configuration mantra. This makes some things much easier, so not so much, but it's not a deal killer.

- Django is a little different than what i have been used to in that there is only one settings.py file. Every other framework i have used .. more

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login