ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
should work 🤷🏻‍♂️
Yes it should be 😢😢😢 or should I go with some setup like nginx with gunicorn or uWSGI
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
unless you have some firewall configured somewhere else
Ohhhh good point, I'll check it too. I don't have any experience with web server setup, this is my first time.
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
yes, that too if you want to setup production environment
What happened when I run in that server with 0.0.0.0:8000 and access with my_public_ip_address:8000 ?
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
you should see django welcome page
I got nothing bro, maybe the firewall rules. I don't know anything about it, but will Google those things and let you know. 😢😢😢
cj
I got nothing bro, maybe the firewall rules. I don't know anything about it, but will Google those things and let you know. 😢😢😢
and make sure theresn't any other service using that 8000 port (I guess apache web server uses that, i'm not sure)
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
Such a dedication, thanks spending your time to resolve my problem 😍 hats off
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
cj
Yes bro, some server in Cambodia
cj
maybe there are some restrictions there?
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
maybe there are some restrictions there?
I just type "ifconfig" and can see my public IP address on it. So best place to check this in firewall 🤔
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
can you ping your public_ip_address from your local machine? 🤔
Yes already tried, have to check telnet with the specific port.
Mayank
Hi everyone
Mayank
I need a help i have to create this web app can anyupone guide me
Mayank
i am new on django
Mayank
i have created investment_plan and investor app and models..
Mayank
i have shared doc file
Mayank
yes web app
cj
i have shared doc file
ah... don't expect people open random file sent by random people 🤷🏻‍♂️ I won't open it
Mayank
can i send again ??
cj
can i send again ??
I won't open that again... better explain what do you want, and what issues you're having while you're making your code
Mayank
okay ..i have to design an admin page in which i have to add investors and investors_plans
Mayank
I have added models for investors and investment_plans ..now i want that admin page should be customize
Mayank
is it possible
Mayank
Admin Console Create an admin user using a script. 1. Login Email Password 2. Create/Edit Investment Plan Name Start Date, End date Rate of Interest (%) 3. Create/Edit Investor Name Email Phone Password Account Name Account Number Bank Name BSB No. Check for unique Account Number and Bank Name combination 4. Create/Edit Investment Select Investment plan Select Investor Amount 5. Account Statement (Display Table) Investor Name Investment Plan Start Date, End Date Rate of Interest (%) Interest Earned Days till Closure (id closed, display “Closed”) 6. Investors Listing (Display Table) Investor Details with Link to Account Summary 7. Investment Plans Listing (Display Table) Investment Plan Details with Link to Edit 22/01/2019 Admin Console Specifications - Google Docs https://docs.google.com/document/d/1ICQIHtAqik7RWuW3Eg21zFvgdmJERUm-TtXuAgvApmQ/edit?ts=5c42fc91 2/2 8. When investor login, display their Account Statement (with same columns as listed in (5.) ). If they have multiple investments, display them in tables one below the other Logout
Mayank
that is the requirement sir
Mayank
is there anyone?
cj
that is the requirement sir
again... what are the issues you're having with your code?
Mayank
this is not homework ..i am in job and not one is there for help me
cj
i cant customize admin page
again... what are the issues you're having? is there a traceback you can show?
Mayank
i cant show you right now
Mayank
🤔
i think i have to create it by myself
Mayank
but can you guide me if you would be a developer than what will be your approach
cj
i think i have to create it by myself
so... are you telling me you didn't do anything and you come here to ask for "help", while "help" means hoping other people do it for you?
Mayank
?
Mayank
i came out from office
Mayank
so i can show you my code
cj
i can share screenshot of my code if you say
no, don't send screenshots of code, use a proper sharing code service
cj
!rules
you have no power here
George
FUUUU
cj
!rules
https://t.me/django/5562
Mayank
okay fine
Mayank
what will i share with you ?
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
hello @c0x6A just, the port 80 is alreay binded with thath public ip address... should I use another port with the same public ip address or ...
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
try
same result, I tried with different ports 😢😢😢
cj
python manage.py runserver 0.0.0.0:8080
cj
then open a browser and go to your public ip 123.123.123.123:8080 and you should see the django page
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
cj
after that
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
I have no idea what I missed 😢😢😢
cj
I have no idea what I missed 😢😢😢
I bet there's something with firewalls or any other restriction 🤷🏻‍♂️
cj
let me check
what OS does your server have?
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
cj
CentOS 6.10
🤔 maybe there's something with SeLinux there 🤷🏻‍♂️
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
🤔 maybe there's something with SeLinux there 🤷🏻‍♂️
where to start? didn't have much experience with linux... should I start firewall rules or SeLinux
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
Anders (izzno / gooood) 🇳🇴
--host=
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
hello @c0x6A , I just flush the firewall rules and now it's working fine without static file. base content is loading 😍😍😍
Anders (izzno / gooood) 🇳🇴
I don't like SE Linux....
cj
I don't like SE Linux....
I don't know anyone that likes it
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
«statics» is another story... glad you have it working now
ohhh you saved my life 😍😍😍 for the static problem I added the static path too
cj
ohhh you saved my life 😍😍😍 for the static problem I added the static path too
now I'm affraid that your server is running without any kind of security ... but that's anoooother story
Anders (izzno / gooood) 🇳🇴
I wish Django did some more work on serving static files by default like flask.
cj
I wish Django did some more work on serving static files by default like flask.
it does, when running with DEBUG=True, but that's not recommended for production
Anders (izzno / gooood) 🇳🇴
You still need setup options