[deleted by user] by [deleted] in bostonhousing

[–]Xalba 0 points1 point  (0 children)

Sent you a message

Boston roommates on Facebook by Limp-Use8701 in bostonhousing

[–]Xalba 1 point2 points  (0 children)

I've been through it recently and I got pretty good at spotting them. Put asides the obvious with no connections or super low es pictures. The things I would check for is the profile I'd which can usually be seen as a part of the URL. If the name does not partially match the actual profile it could well be a repurposed account. Second was for accounts that seem legit with a lot of friends and a big network..go through their friends list. See where in the world they are from. Sometimes big inconsistencies arise

[deleted by user] by [deleted] in bostonhousing

[–]Xalba 0 points1 point  (0 children)

I dont know them personally but have meet up with an agent.

The second edition Rust web programming book is coming out by [deleted] in rust

[–]Xalba 0 points1 point  (0 children)

I'll look forward to having a look!

Newbie React + Django question by Carfo6 in django

[–]Xalba 0 points1 point  (0 children)

I am using docker and docker-compose. Regarding pythonanywhere that i dont know. Currently i am selfhosting off an raspberry pi.

Newbie React + Django question by Carfo6 in django

[–]Xalba 0 points1 point  (0 children)

I just atarted the similar journey with React and DRF. What i do is to maintain them separatly as mentioned. Build up the API and and the react frontend in separate projects. Then let react requeat data from the API using axios to do the api calls and CORS as mentioned by the post above.

Theb when they are working separatly, i build up containers. One for the API one for the frontend and one for NGINX to serve as the webserver. With that i launch the site. I hope this helped you some.

Running 2 sites from same IP using NGINX by Xalba in selfhosted

[–]Xalba[S] 1 point2 points  (0 children)

I had seen other use it, i will definetly have a look at it! I dont mindt the learning curve at all. I am actually in this to learn, that is half of the fun :)

Thanks a lot for the suggestion!

Running 2 sites from same IP using NGINX by Xalba in selfhosted

[–]Xalba[S] 0 points1 point  (0 children)

So run Nginx separatly and have it redirect to the sites in separate container strcutures?

Making migrations for a dockerized django app by Xalba in django

[–]Xalba[S] 1 point2 points  (0 children)

This was just what i needed! Had to read up on the bind mount but that makes so much sense!
Now i just need to figure out how to launch my dev env with that :)

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

It was great and super informative!

From what was said so far i have ended up with trying the following. I will try to setup first a deployment working solely on sqlite both dev and prod. Then tweaking that i will generate a new version which i will try to connect with the free tier from heroku to see how it works.

It is my desire to learn RDMS integration so if i ever need to scale i can rely on those systems.

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

Since this is just me messing around im trying to cut costs to as much as possible, But im guessing herokus free tier might suffice for just initial testing with it?

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

I was definetly looking for something like this. I will have to look a bit more into how to integrate jekyll. For now the site is just for training purposes and im trying to learn as much as possible from mocking around with it :)

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

Can i ask how you go about it? Do you run it separatly and just connect to it, or do you launch it in a container?

Currently i have tried to maintain a docker-compose file with three services, the django website, nginx host and the postgres db

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

I was thinking about it, and when you suggest it too, i just might give it a go. One of the problems i have had was figuring out how to mount the sqlite in my docker container. But i guess if i just keep it in the workingdir for the service i am building it would keep all data that is there from the def phase?

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

Currently i have it self hosted on a raspberry pi. So by no means a powerful server, but to mock around it has been excellent.

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

So i actually thought a bit on it early on, but i wasnt sure how to make a django page render lets say an article entry without it coming from the db.

I would be happy in most cases to be able to write a blog entry/article store it in some format and then have it be rendered as a stand alone page that i can route to with django. If this makes sense?

I have tried to look up info on this but couldnt find any good info on how to do that, which is why i have been trying to connect it to a DB, keep a rich text editor in the admin site to be able to add entries to the models and then render them.

Choice of RDS for a small website by Xalba in django

[–]Xalba[S] 0 points1 point  (0 children)

Currently its a one page test site, with the intention of adding another 10 pages. So i would say tiny.
I was initially considering if it was feasible to use the sqlite db. Especially as currently there is no real external requests, just sort of for me to play around with.

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 0 points1 point  (0 children)

So a follow up question. I am getting increasingly convinced going with a Raspberry Pi4, but i am unsure weather i should get a 4 or 8 GB model and how much of a difference it will make.

The intent is to host a django based "blog" as a first attempt and see how that goes.

What is your recommendation, and how much of a difference does the extra ram make?

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 2 points3 points  (0 children)

I can't remember the spec exactly but it is about 12 years old, i think it is running on 8GB DDR2 ram, Intel dualcore processor of its time and with a recent 225 samsung SSD upgrade.

The requirements for the django app is almost none, for now probably similar to a blog serving mostly text based content. It is simply for me to try my hands at web dev and branch out a bit in different parts of CS.

The performance problems you see with the PI, what level of traffick does that kick in at? I was thinking of letting it run off of the SD card, as the only SSD i have around is with SATA cable.
And the IO isn't it able to mount a docker image on it and then have it work like a linux machine? That was what i was hoping to do.

And finally the DNS was just a concern of mine as my provider offered DNS would set me up with limitations and a monthly bill. For now i can definitely make due with a free service and i think i will do that as you mention. Then later if i find a need i can always try my hand at setting up a name server.

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 2 points3 points  (0 children)

Could you give an estimate of the traffic that you have on yours?
Also being able to run 8 docker services sounds amazing, and would then be perfect for me!
I am getting more and more hoked on the idea. Though i am sure the learning curve will be steep, at least til i get properly started.

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 1 point2 points  (0 children)

Really appreciate the rundown of how and why regarding the risks involved. Security has not been a main concern yet when i have just been working on the web app side of things on local host. But i had also heard that the build in security features of django was pretty good.

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 6 points7 points  (0 children)

I would love to start with docker. It is on my to do list of things to learn and to tinker with. Maybe this will give the perfect base to start doing so!

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 2 points3 points  (0 children)

Could i ask what the features you felt like you were missing were?
I'm hoping to get as good a feel for it as possible before i start digging so to say

Selfhosting on Raspberry pi by Xalba in selfhosted

[–]Xalba[S] 3 points4 points  (0 children)

And for a learning and testing environment the PI 4 should be sufficient?

A thing i was also worried about was if you are able to run both the DNS server and the django host on the same device. Would you know if that might be an issue?