A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
hello i blocked some ip using : sudo ufw deny from
How to unblock it ?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
sudo ufw allow from <ip address>
what if it still didnt work
i m allowing my IP, and it still blocking my ip
I'm using Celery to do Async tasks for my Django app, and I run Celery as daemon using celeryd.
When I run ```/etc/init.d/celeryd start``` everything works perfect, but if the server restarted celeryd won't start as well, I tried the solution in this [question](http://askubuntu.com/questions/388434/celeryd-not-running-at-startup), and this [one](http://askubuntu.com/questions/19320/how-to-enable-or-disable-services/20351#20351) also.
I have a large app to deploy so maybe it we be more easier to rename host django-project folder.
I'm getting a bad gateway error. (My own fault for using Youtube)
This is the Nginx error message
2018/01/10 17:07:58 [error] 2210#2210: *5 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 18.104.22.168, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:/home/django/gunicorn.socket:/", host: "22.214.171.124"
2018/01/10 17:08:45 [error] 2210#2210: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 126.96.36.199, server: _, request: "GET / HTTP/1.1", upstream:
Looking at the other questions I changed
ALLOWED_HOSTS = [ipaddress]
and added ALLOWED_HOSTS += ip_addresses() top the bottom
A really dumb question do I change the secret key on the droplet to the secret key from my project?
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
How to resolve
2017/12/03 17:06:10 [error] 3001#3001: *53342 open() "/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin//css/base.css" failed (2: No such file or directory), server: _, request: "GET /static/admin/css/base.css HTTP/1.1",
How to remove this extra slash
theres no django in dist-packages
why and how?