baealex / blex Goto Github PK
View Code? Open in Web Editor NEWπ» BLOG EXPRESS ME
Home Page: https://blex.me
License: MIT License
π» BLOG EXPRESS ME
Home Page: https://blex.me
License: MIT License
https://github.com/baealex/BLEX/blob/master/webserver/nginx.conf
please explain for what? port 20204 not use anything in nextjs or django
server {
listen 20204;
listen [::]:20204;
server_name localhost;
root /www/static;
location ~* \.(eof|otf|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}
location ~* \.(?:jpg|jpeg|png|gif|ico|gz|svg|svgz|ogg|mp4|webm|ogv|htc|cur)$ {
expires 3M;
access_log off;
add_header Cache-Control "public";
}
}
The result is: user not login, because cookie not set
alive
##################################
:method: GET
:scheme: https
:authority: 8ad9bfcff97f.ngrok.io
:path: /v1/alive
Accept: application/json, text/plain, /
Origin: http://localhost:8002
Accept-Encoding: gzip, deflate, br
Host: 8ad9bfcff97f.ngrok.io
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15
Accept-Language: en-us
Referer: http://localhost:8002/
Connection: keep-alive
Response
:status: 200
Access-Control-Allow-Credentials: true
Content-Type: text/html; charset=utf-8
Access-Control-Allow-Origin: http://localhost:8002
Date: Sat, 05 Dec 2020 04:28:01 GMT
X-Frame-Options: SAMEORIGIN
Content-Length: 4
Vary: Origin, Cookie
Server: nginx/1.19.5
##################################
only set nav logined for first time, if I reload it gone
λ‘컬 νκ²½μμ λλ €λ³΄λ €κ³ μλνμΌλ μλ¬κ° λ°μν©λλ€.
File "C:\Users\Administrator\Downloads\BLEX-master\BLEX-master\src\board\urls.py", line 14, in <module> path('login', auth_views.login, name='login'), AttributeError: module 'django.contrib.auth.views' has no attribute 'login'
python manage.py migrate λͺ
λ Ήμ΄λ₯Ό μ€ννλ λμ€ μ΄λ° μλ¬κ° λ°μνμ΅λλ€.
μ΄μ체μ λ μλμ°λ₯Ό μ¬μ©μ€μ
λλ€.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.