#web-development

2 messages ยท Page 133 of 1

nimble epoch
#

you use django_rest_framework token auth?

#

request.session[''] if im right. try it

shy willow
#

rest_framework.auth I think

nimble epoch
#

rest_framework.authtoken right?

#

if so the token doesnt get changed by diff requests

muted stump
shy willow
nimble epoch
muted stump
#

but i dont know why my sqlite is not working

shy willow
#

isn't that the whole point of token authentication?

#

that there are multiple, and they keep changing?

#

In this django rest api authentication tutorial, you will learn how to use TokenAuthentication and SessionAuthentication and when each approach is appropriate.

7 Tips For Getting Better At Django:
https://mailchi.mp/dea592ab3f6d/tips-for-getting-better-at-django

Here you can find more information about REST API authentication:
http://www.djang...

โ–ถ Play video
placid plume
#

There was a time when I learnt html and css and used to make websites

nimble epoch
placid plume
#

Now it's about python

#

Making softwares and ai ml etc etc

#

Btw wait

nimble epoch
placid plume
#

U know why I don't do web development, cuz it's not in demand

muted stump
#

no??

shy willow
placid plume
#

Backend development has some demand

#

But not front end

nimble epoch
placid plume
#

Within 3-4 years, backend demand wilp also end

nimble epoch
#

bro what you spamming????

placid plume
#

That's why I am looking up towards Android development and software development

muted stump
placid plume
#

When did I spam

#

I didn't spam

#

I am spitting out straight facts according to data

nimble epoch
#

ok ok

placid plume
#

That others give

nimble epoch
#

oh ok

placid plume
#

Mm

shy willow
muted stump
#

@placid plume talking unrelated things is not cool

placid plume
#

I didn't talk unrelated

#

I talked about web developmmet

#

And it's fall

#

I didn't go off topic

muted stump
#

ah so what about web apps lol

#

web apps are trend now

nimble epoch
placid plume
#

Everyone uses softwares now

muted stump
#

no i use web apps a lot

placid plume
#

I didn't say that it's completely shut down. It has less demand compared to others

placid plume
#

And many maybe

#

But u have to agree with the fact that web decelopment is kinda dying

#

U have to agree

muted stump
#

chromebook users like: ah are we in many

placid plume
#

Lol

muted stump
#

we are starting to use less apps and and more websites

placid plume
placid plume
muted stump
#

well google will deny

placid plume
#

Apps are used more than web

#

Why don't u get it

#

U can ask anyone

#

Whatever ur defence be, web development is in less demand nowadays

muted stump
#

well i use spotify web and discord web than apps

placid plume
#

Only u do that

#

And many others too

muted stump
#

not really

placid plume
#

Majority use softwares

muted stump
#

so better to learn web dev nowadays

placid plume
#

Web is actually good for those who have low end stuff and don't wanna install many things like me

shy willow
#

@nimble epoch just to get one thing straight, token auth works in a way, that there is a token for each user, or each request?

placid plume
#

I am trying to say that the salary of other developers is more than web devs

placid plume
#

Except backend devs

#

Hey @nimble epoch hey @shy willow do u agree with me?

nimble epoch
#

with what?

shy willow
placid plume
muted stump
nimble epoch
shy willow
placid plume
#

Bro I don't wanna argue or anything but u can ask form like anyone who has some knowledge about this stuff

shy willow
nimble epoch
#

yes

#

for each user diff tokens

placid plume
#

Backend development is in demand but it will end by max 8-9 years

#

Cuz there is a lot of competition in web development

#

And there is kinda less competition in other development stuff

#

Come on

shy willow
placid plume
#

Get me?

placid plume
#

I mean to say that web development is in less demand than others

shy willow
#

maybe front end, because there will be more and more websites like wix and there will be like automatic design builders

placid plume
#

Salary of web devs is less

#

Nowadays

placid plume
#

Others means software , ai , ml, data scientist and app

#

These devs

#

U salary will be very high

nimble epoch
native tide
placid plume
#

Ture

#

True

native tide
#

it's not, it's your opinion

placid plume
#

God my spelling

#

U can ask anyone

#

Not only my opinion

nimble epoch
#

yeah of course you right

shy willow
#

@nimble epoch so I just tried using the website and making some requests, and the token is still one and the same

placid plume
#

Only backend is still alive

#

Front end is already dead

#

Backend will last for max 8-9 years

#

Or maybe 10

nimble epoch
native tide
#

have you looked at job markets recently...

placid plume
native tide
#

so you're just speaking out your ass

placid plume
#

Cuz of many websites like wic

#

Wix

shy willow
placid plume
#

Web dev is ez nowadays

native tide
#

wix, wordpress, they do not replace fullstack development

nimble epoch
placid plume
#

And like anyone who doesn't even know about web development can make websotes

native tide
placid plume
shy willow
native tide
#

backend is more dead than frontend

nimble epoch
placid plume
#

Like anyone

native tide
nimble epoch
#

are you sure its about auth token? right?

native tide
#

I don't need to ask anyone, I KNOW THE JOB MARKETS, and you do not

shy willow
#

yes

native tide
#

you are mumbling out your ass

placid plume
shy willow
placid plume
#

But now I learn others

native tide
#

You literally just said you have 0 experience

placid plume
#

I know html and css

#

Not much

#

Front end is ded

#

Backend is alive

native tide
#

stop lying

nimble epoch
shy willow
#

Can you check out the tutorial I followed to see what I mean if you don't mind?

placid plume
#

I didn't say web develipment is completely ded and of no use

shy willow
native tide
#

Honestly do some research before you start talking

nimble epoch
placid plume
#

BACKEND IS STILL ALIVE SO DONT ARGUE WITH ME ABOUT THAT

nimble epoch
#

ok ok clam down

placid plume
#

I am talking about front end

#

I am calm

#

That guy is hot

native tide
shy willow
nimble epoch
#

lol

placid plume
#

Does not defeat

shy willow
#

yes it does, if you've never done javascript

native tide
#

This guy has done 0 research, thinks react is a backend framework, then gets proved that there are more frontend jobs for 1 (ONE) framework than the WHOLE of machine learning

shy willow
#

XDDD

native tide
#

and says it's dead ๐Ÿ˜‚

placid plume
#

Lol qait

nimble epoch
placid plume
#

Wait wait

#

Lemme say

native tide
#

Nah do some research next time

placid plume
#

No one will message for a min pls maybe

native tide
#

Wordpress/wix is not even competition

placid plume
#

LEMME SAYY BROOOO

native tide
#

Do some research before you say it then

placid plume
#

U didn't even listen wut I am saying

#

LEMME SAY

#

I am here after enough research

#

Imagine owners seeing this chat

#

Lmao

#

But lemme say

#

Can I say?

#

May I?

shy willow
#

you see, @placid plume , maybe wix and wordpress are getting more and more popular, even because they don't require any code skills, but you can't build a website like wordpress and wix with something like wix and wordpress

placid plume
#

U dont need to build such website

#

As there are already many

nimble epoch
shy willow
#

point proven?

placid plume
#

Popularity might decrease bro

placid plume
nimble epoch
#

@placid plume you wanna say we wont need front end anymore?

shy willow
placid plume
#

Web development mostly consist of javascript, css and html

placid plume
#

Then comes the parts of javascript like react

nimble epoch
#

then...?

#

bro that all?

placid plume
#

So what I mean to say

#

Is ...

shy willow
placid plume
#

Front end is kinda very difficult to get high salary in

nimble epoch
#

falssssse

placid plume
#

Front end*

#

Backend is still alive

#

I didn't say anything about backend

#

Respect++

#

To backend

#

But why don't get it

#

Front end is dying

nimble epoch
#

who says that?

placid plume
#

Anyone can make a good looking website with wix or wordpress

#

U dont even need coding skills

#

So u get me?

#

Do u?

shy willow
# placid plume Front end is kinda very difficult to get high salary in

man, you really gotta be careful spreading info like that, especially without doing research. There are lots of people like me who are dreaming of becoming something particular, like front end web devs when they're grown up, and then there are people who come along and just spread false info and destroy peoples dreams and hopes. Lots of youtubers do this

placid plume
nimble epoch
shy willow
# placid plume Do u?

A website built with wordpress/wix has much simpler functionalities and is much different from a website built with react/vue/code in general

placid plume
#

Y r u not getitng it

#

Oo man

#

I earlier said that front end is usually made with css html and js

#

Just some time ago

#

React vue is other stuff

nimble epoch
#

i got a bad headache

shy willow
#

Answer this question: if you have a billion dollar idea website, will you create it with a web builder like wordpress or a code framework?

placid plume
nimble epoch
#

true

muted stump
#

@placid plume well if you need to add some crazy functionality and maybe use some apis then wix or squarespace wont do

placid plume
shy willow
#

no

placid plume
#

U lost the qs there

shy willow
#

that's not my point

placid plume
#

It is ur point

#

U gave up urself

shy willow
#

if you wanted to build any website. dunno why I mentioned billion dollar idea

muted stump
#

@placid plume stop this or we will call mods

placid plume
#

Most of the ppl take templates or use wix and wordpress and then do backedn

placid plume
#

I am spitting out staright facts

#

But u r not getting it

#

U r losing in this kinda arguement

#

So u calling mods

shy willow
#

yeah @placid plume , just do some research first or don't use such absolute hyperbolizations

muted stump
#

yeah if wanna look pro then you dont use wix and there is a big limitation factor in wix and squarespace

muted stump
nimble epoch
#

mods can do nothing about it you gotta call fbi

placid plume
#

No one wants to look pro

native tide
# placid plume One back qs- do u have a billion dollar idea?

As I said, there are more REACT jobs (One SINGULAR framework) than jobs for ML. It is nowhere near dead.

Your idea that Wordpress / Wix is making web-dev die is nowhere near the truth, because the jobs requiring fullstack skills cannot be made with Wordpress / Wix.

Wordpress / Wix is meant for individuals and small business owners, like you and me.

shy willow
placid plume
#

Eg- look at Google and microsoft websites

nimble epoch
#

๐Ÿ˜† ๐Ÿ‘

placid plume
muted stump
#

@placid plume you are getting toxic that is why we are gonna call mods

native tide
placid plume
#

Whne did I abuse

shy willow
nimble epoch
#

bro he said wix and ....

placid plume
#

When did I get toxic

#

I am proving my point

native tide
placid plume
#

But u don't wanna agtee

#

That not my problem

nimble epoch
#

we all agree

shy willow
nimble epoch
#

you all true

placid plume
#

Many of u r getting stuck in this kinda arguement

#

I know

native tide
#

They have very complex architecture, it's not a simple "idea" ๐Ÿคฆโ€โ™‚๏ธ

muted stump
placid plume
#

But u don't wanna lose

placid plume
muted stump
#

and amazing web apps and google meets stuff

placid plume
#

That is backend

#

Don't argue with me about backend

#

That is still alive

#

That all are backend

native tide
# placid plume But u don't wanna lose

Also you said that web-dev is low paid, well again I'll go on my job listing within my country (UK), and there are 1000+ jobs that pay $100,000 for frontend

placid plume
#

In any company u can search the salary of front end devs vs salary of other devs

native tide
#

Search it then! I have.

placid plume
#

I too have

native tide
#

How about you look at real job listings at this current time

muted stump
#

well stop this convo right now

placid plume
native tide
#

That gives you a definitive answer

placid plume
#

In every country it's the matter

muted stump
placid plume
#

But u don't get it and that not my fault

native tide
#

I guess so, and in the US the salaries are absolutely crazy

placid plume
muted stump
placid plume
#

Front end is dying

native tide
muted stump
#

ok

#

thug dog i got best example to cut you off

native tide
#

my point exactly

placid plume
native tide
#

look guys it's so "dead" ๐Ÿ˜‚ ๐Ÿ˜‚

placid plume
#

And it's simple

native tide
#

one framework > whole of ml

#

guys its so dead ๐Ÿ˜‚

placid plume
#

Bro I didn't talk about react

#

Why don't u understand

native tide
placid plume
#

But I am not talking about it

native tide
#

you thought it was backend 5 mins ago ๐Ÿ˜‚

muted stump
shy willow
# placid plume I am talking about future

apart from the crazy predictions you're making, it's very hard to make predictions about the future about especially technology. tech is constantly evolving, and you can't really predict what turn it will take

placid plume
#

I am talking about html css and js

native tide
#

Yes you are. You said web dev is dying

#

React is js

#

๐Ÿคฆโ€โ™‚๏ธ

placid plume
native tide
#

React is considered web dev

placid plume
placid plume
native tide
#

Is it? Is React dying?

placid plume
#

No

native tide
#

Thats 1 framework buddy

#

Theres 4 frontend frameworks

placid plume
#

Others are dying

muted stump
#

react and react native are topping

shy willow
#

@placid plume I have a feeling you are misunderstanding what react is

placid plume
#

Oo man

native tide
#

Ok cool, but react is still a web-dev framework

#

So web dev is not dying

placid plume
#

Itss so hard to get u the point

muted stump
placid plume
#

I didn't talk about react

#

Don't come with the example of react

shy willow
#

So you are talking about vanilla js?

placid plume
#

Talk about html css and js

shy willow
#

wdym by html, css, js

native tide
#

You're talking about web-dev... I just showed you 1 framework which disproves your whole point

muted stump
quick cargo
#

pithink This has to be the most pointless argument ever

native tide
#

Haha ๐Ÿ˜‚ I agree

placid plume
#

I am talking about HTML CSS AND JS

muted stump
#

so you are saying about html and css

shy willow
#

@placid plume how many years of coding do you have?

muted stump
#

well html + css = junk

native tide
#

It's funny though, ngl

placid plume
#

They make up to 50% of front end

muted stump
#

and no one even gets a ob with that

native tide
shy willow
quick cargo
#

Yall know that Those a fundamental bases right?

#

react is just a framework built on JS

placid plume
#

That is what I am saying, no one gets a job with html css and js

muted stump
quick cargo
#

i mean you can

placid plume
#

But u r talking about react and stuff

shy willow
quick cargo
#

this argument is mind mindbogglingly dumb

shy willow
placid plume
muted stump
native tide
placid plume
shy willow
#

No one understands what you mean by html, css, js

quick cargo
#

even though you can because you react is mostly just a super set of raw html and js

native tide
#

^^^

placid plume
quick cargo
#

pithink Thats just false lol

muted stump
#

@placid plume shut up lol aren't you tired. no one even agrees with you

native tide
placid plume
#

I never said that web dev is doting

#

Dying

muted stump
#

doting

native tide
#

React = HTML CSS and JS

#

Literally just that

muted stump
#

yeah

placid plume
#

Ik

quick cargo
#

react is baby levels easy if you know the 3 fundamental systems it uses lol

shy willow
muted stump
#

react is actually at its core html css and js

shy willow
placid plume
#

3years

muted stump
placid plume
#

U can targue about experience as u said u r beginner

placid plume
#

Of making big projects

#

With html css and js

#

Not react and vur

shy willow
#

I think what you mean by html, css and js is vanilla js, just plain js. And in that case you would kind of be right. That's why people use js frameworks instead of just plain js

placid plume
#

Vue

muted stump
#

big projects are not possible with html css and js as big projects get hosted

#

you need a hosting service too lol

shy willow
placid plume
#

U r going back to react

placid plume
#

After several years

native tide
#

I wouldn't take your word for gospel after you thought web dev is dying...

muted stump
shy willow
placid plume
muted stump
shy willow
native tide
#

But I hope at least you now know, that it is indeed, not dying (and I have seen django jobs increase in the recent months too)

placid plume
#

I am from a time meachine

#

It is NOT dying

#

It is in LESS DEMAND

shy willow
placid plume
#

Lol

native tide
muted stump
placid plume
native tide
#

I bet you listened to all of the ML / AI hype and think it's massive

placid plume
#

My point is HTML CSS AND JS IS IN LESS DEMAND

placid plume
#

And everyone does

native tide
#

Have you ever written your own ML model? You'll find it's not what it's put out to be ๐Ÿ˜„

muted stump
# placid plume I do

well you dont wanna do fronend then go on we are not stopping you. but pls stop this argument for god's sake

native tide
#

Also frontend thwarts backend

placid plume
#

I have not reached ml

native tide
#

Anyday

placid plume
#

I am telling with ma experinece

shy willow
muted stump
#

yeah

placid plume
muted stump
#

it never been god code or something

placid plume
#

U guys r wrong

#

Agree with me if want

muted stump
placid plume
#

If u dont, I don't care

native tide
muted stump
placid plume
native tide
#

That says a lot about your argument then ey

placid plume
#

That's with only with that websote

muted stump
placid plume
#

Not others

native tide
#

Cool, visit others then

nimble epoch
#

bro you still here arguing????

shy willow
#

because js is still updating. if it were deprecated a long time ago, it may have been useless and extremely easy to learn by now

placid plume
muted stump
#

ok imma call mod

placid plume
#

Ok call

#

I didnt said anything bad or go off rules

#

I am spitting out facts

#

U r not agreeing

nimble epoch
native tide
#

No you're not

placid plume
#

U r getting toxic

nimble epoch
#

maybe someone answer you there

placid plume
#

And getting jealous of my point

quick cargo
#

Oml can we all just stop with this

placid plume
#

That is why u r calling mods

quick cargo
#

this is just another level of stupidity and pointless arguements

placid plume
#

Ok

#

No one cares

native tide
#

๐Ÿ˜‚

nimble epoch
#

of course

muted stump
#

you lose bye bye

placid plume
#

I don't lose

quick cargo
#

they're entitled to their own opinion whether or not that opinion is correct or not doesnt matter

muted stump
placid plume
#

U dont have words

quick cargo
#

just stop feeding them

placid plume
#

I am not

#

I am spitting out facts

quick cargo
#

In the end its not gonna effect any of you lot if that's their opinion is it, they're gonna be the ones loosing if that's their opinion

#

this is just going around in circles

muted stump
#

well facts are that in future creativity will be high demand than logic

placid plume
#

We both r kinda worng and kinda correct,

#

Lemme conclude this

quick cargo
#

You need JS, HTML and CSS to make ANY functioning website,

muted stump
#

yes

quick cargo
#

EVERY front end developer job will require you to have those 3 down

native tide
quick cargo
#

they are not optional specs

placid plume
#

HTML CSS AND JS IS IN LESS DEMAND (U HAVR TO AGREE) AND REACT AND ITHER STUFF IS IN DEMAND(I AGREED)

muted stump
native tide
#

^ Literally dude

native tide
placid plume
#

I don't wanna

native tide
#

Why not?

placid plume
#

U can go and see

native tide
#

Don't want to be disproved?

muted stump
#

oh you are saying in future react becomes a whole new thing

native tide
#

I have lmfao

placid plume
#

I am darn right

quick cargo
#

Please stop feeding the troll blobpain

placid plume
#

U guys win and also lose
I too does the same

muted stump
#

yeah everyone give this guy silent treatment

placid plume
#

I don't want

#

U dont have words

#

Say like that

muted stump
#

we do

#

we tons

placid plume
#

So say

#

Say then

#

Why u silent

quick cargo
#

Yall are entitled to your own opinion, just leave it at that

native tide
#

No one has agreed with you, and you don't want to visit a jobsite to disprove yourself lmfao, says a lot about your arguement. that's me done anyway, this guy's a good troll lmfao

manic frost
#

Hi, what's going on in here?

muted stump
#

we dont wanna say cus you are stupid and biazed

placid plume
#

Lol come on, u win and also lose, I also win and lose with some of the points

placid plume
quick cargo
muted stump
#

no we are not

placid plume
#

Cuz u don't wanna agree

muted stump
#

we are considering mroe things than you are

native tide
#

@muted stump Give him the silent treatment, he's obviously ~12yo and just trolling

placid plume
#

Idc if u don't wanna agree

manic frost
#

Now let's stop this fruitless discussion and move on.

muted stump
#

thx fix error

placid plume
#

Dude I am going , believe me if u want

#

totsiens

#

Bye

muted stump
#

@manic frost can you also warn that guy cus he reached the point where he gets warned long time ago

quick cargo
#

my god just let it go

muted stump
#

especially if he was in general chat

nimble epoch
#

he left? thanks god

native tide
#

sooo uhh, where were we? websockets? ๐Ÿ˜†

manic frost
#

Now let's really just move on.

muted stump
#

it would be a pain to scroll up

#

anyway decimal is float in sql right??

quick cargo
#

tis a floating point number yes

muted stump
#

or maybe i should ask a question proper for this channel

#

well can i use a custom data stuff without ORM

manic frost
#

Sure, you don't have to use an ORM

muted stump
#

i just dont wanna go through learning all that

#

but should i use sqlite or postgres

quick cargo
#

sqlite is good for testing and small stuff

manic frost
#

Yep.

muted stump
#

well then postgres i guess

manic frost
#

If you're just learning, you can just go with sqlite.

quick cargo
#

generally i develop and test with sqlite first then move to postgres i prod

muted stump
#

no im learning and making my project at the same time

placid plume
#

I don't wanna argue more

#

Let's see who earns more in the fiture

quick cargo
#

I mean if sqlite is still plenty powerful for that sorta stuff

placid plume
#

And then talk

manic frost
#

!warn @placid plume I told you to stop this argument. Was I not clear?

lavish prismBOT
#

:incoming_envelope: :ok_hand: applied warning to @placid plume.

placid plume
#

I wen off

quick cargo
#

pithink Man some people do not learn

placid plume
#

Ok

muted stump
placid plume
quick cargo
#

anyway

muted stump
#

like in anime: not even a scratch??

manic frost
muted stump
quick cargo
#

how big though

#

like sqlite can still handle thousands of operations a second

native tide
#

If you're using an ORM there's no difference between postgres and sqlite apart from some postgres-specific fields, right?

placid plume
#

@manic frost I am not arguing . They r becoming toxic and kinda approaching this matter like and arguement

quick cargo
#

we only moved off sqlite when shit started hitting like 1 million rows

muted stump
#

its an alternative for patreon

quick cargo
placid plume
#

U just warned me for no reason

quick cargo
#

or atleast in order to make the platform multi user

manic frost
#

@placid plume If you want to appeal an infraction or complain about a moderator, contact @hexed spoke.

placid plume
#

K

manic frost
#

@muted stump When SQLite becomes the bottleneck for your service, you probably have bigger problems.

muted stump
#

oh lol

#

so sqlite to the go??

quick cargo
#

might aswell

native tide
muted stump
#

is there any need for me to use postgres

quick cargo
#

well sqlite is single file

manic frost
quick cargo
#

and that^

manic frost
#

and, well, that ^ so it's not partitionable

quick cargo
#

i means its quite slow as shit gets bigger

#

it also lacks the security aspect of being able to lock files

muted stump
#

so sqlite is unsafe

#

hmm

#

well that is not nice

quick cargo
#

i mean if you're storing ANY payment info in your DB you're probably unsafe

placid plume
native tide
#

so, locking the database means you can't concurrently write stuff to it? not too sure on what that does

quick cargo
#

SQlite cant no

#

i mean its still quite

#

in the sense it can insert a million rows in less than a second

native tide
#

ah so it's sort of a "queue" if you will to write to the database, and with postgres it's a bit more concurrent

quick cargo
#

but its mostly select statments as it gets bigger that start to take a toll

muted stump
quick cargo
#

Well i certainly wouldnt risk the legal issues

muted stump
#

i guess i have to dump my project

#

wait no

#

i dont need to store em

#

and maybe instead of going through the money stuff i will make a digital currency like robux

#

but then they need to buy it first to donate to their fav creators

#

so i guess i have to dump the project

#

its pretty nice in plan but pretty hard when developing

#

i should try get someone else to help me out in this

quick cargo
muted stump
#

ah i dont think i got that

nimble epoch
#

set padding and margin to 0

muted stump
#

ok

nimble epoch
#

oh

#

you sure you didnt add padding or margin somewhere?

muted stump
#

nope

nimble epoch
#

how you to add body * margin and padding to 0? did you?

muted stump
#
.navbar {
    background-color: #333333;
    padding: 0px;
    margin: 0px;
}

.mainbody {
    background-color: #666666;
    height: 1000px;
    padding: 0px;
    margin: 0px;
}```
#

see

nimble epoch
#

yeaa

muted stump
#

maybe change width

nimble epoch
#

you using bootstrap too?

muted stump
#

nope

nimble epoch
#

i think theres something extra or wrong in your code maybe

muted stump
#

which code

#

python or html

nimble epoch
#

html or css of course

muted stump
#
{% load static %}
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="{% static 'main.css' %}">
    <title>{{ title }}</title>
</head>
<body>
    <nav class="navbar">
        <h2>{{ title}}</h2>
        <a class="navlink" href="/">Home</a>
        <a class="navlink" href="/profile/">Profile</a>
    </nav>
    <div class="mainbody">
        {% block content %}
        {% endblock %}
    </div>
</body>
</html>```
#
.navbar {
    background-color: #333333;
    padding: 0px;
    margin: 0px;
}

.navlink {
    color: #737373;
    background-color: #4d4d4d;
    border-radius: 4px;
    padding: 4px;
    margin-right: 3px;
    text-decoration: none;
}

.navlink:hover {
    color: #737373;
    background-color: #8c8c8c;
    border-radius: 4px;
    padding: 4px;
    margin-right: 3px;
    text-decoration: none;
}

.navlink:active {
    color: #737373;
    background-color: #808080;
    border-radius: 4px;
    padding: 4px;
    margin-right: 3px;
    text-decoration: none;
}

.mainbody {
    background-color: #666666;
    height: 1000px;
    padding: 0px;
    margin: 0px;
}```
nimble epoch
#

not sure whats wrong

#

ok add body * { padding: 0px; } anything changed?

nimble epoch
#

oh

muted stump
#

maybe its a problem with edge

nimble epoch
#

try margin

muted stump
#

ok

quick cargo
#

low key dev tools r ur friend

halcyon lion
#

any javascripters who use vs code

#

need some help setting up mocha and chai

manic frost
#

@muted stump You should look into CSS grid, it often makes creating a layout easier.

muted stump
nimble epoch
#

oh how?

muted stump
#

still the white margin is there

nimble epoch
#

oh ok just a idea... im not stupid but try body too

#

i mean body { }

muted stump
#
body * {
    padding: 0px;
    margin: 0px;
}
nimble epoch
#

yeah body just body {} not body * {}

muted stump
#

oh yeah it fixed it

nimble epoch
#

oh good

wicked elbow
#

do

html, body {
}
``` to set your defaults normally. dont know if it matters, but thats what i always do
nimble epoch
muted stump
#

well did

nimble epoch
#

oh good

valid plinth
#

I was testing out the django tutorial and is there any way I can upload the whole virtual env folder to a hosting site like www.pythonanywhere.com ?

muted stump
wicked elbow
nimble epoch
#

i think you should add it like body, body * {}worked?

muted stump
#

no

#

i think

nimble epoch
#

u think?

muted stump
#

i need to just add padding on top to mainbody

nimble epoch
#

you mean a space is needed between navbar and main body?

wicked elbow
#

dont set your height in css... its bad programming... if you want it to fill the screen, set it with js. but dont set it in css

muted stump
#

well i put padding top on mainbody class as 1px and it fixed it

wicked elbow
#

you can all just set the whole body to that color so it looks like its filled. but for someone on a different resolution then you, itll create a scrollbar for no reason

muted stump
#

i dont use js

wicked elbow
#

you should probably learn some, thats most of frontend programming.

muted stump
#

well im sticking to django and html for now

#

and css too

nimble epoch
#

@muted stump but i suggest you to use bootstrap thats eazy too

cerulean vapor
#

@native tide again, I'm not sure why you're getting this error - what are you trying to do?

native tide
#

That's just from sending too many requests too quickly

wicked elbow
#

learn frontend before you learn backend. unless you only plan on only doing backend. then by all means dont worry about js.

native tide
#

the WGSI server shits its pants

muted stump
#

same case with js

native tide
#

Anywayas Infini, why do you not accept requests?

cerulean vapor
#

because I don't need the extra hassle, that's all

native tide
#

I am no hassle

nimble epoch
native tide
#

You'll never get a DM from me. I can just see if you're online

cerulean vapor
#

when I did, I got carpet-bombed all day long by people who Just Wanted To Ask One Question

native tide
#

oof

#

maximum oof.

cerulean vapor
#

it's nothing persona, it's just a defensive habit I've acquired because people routinely abuse the privilege.

native tide
#

That sucks

cerulean vapor
#

(and then get annoyed when I don't immediately respond to their question, etc.)

native tide
#

I can't stand those people

#

hi

cerulean vapor
#

anyway, I haven't done anything too agressive with the refernce WSGI server

native tide
#

Help is free.

#

Don't be entitled

#

So infini, how did you learn Bottle?

#

I find the docs to be awful

cerulean vapor
#

picked it up on my own, wrote my own apps with it

nimble epoch
cerulean vapor
#

I'm eyeing other things in the future, though, as they have no story for ASGI or async in general

wicked elbow
#

most docs are awful ive found. try setting up wsgi in apache. i still dont have it right because theres to many different version and to many different set ups and none of them really explain whats going on

muted stump
nimble epoch
#

right

#

even eazier

muted stump
#

well i cant seem to find a bootstrap i like too

wicked elbow
nimble epoch
#

its like bootstrap i think

muted stump
#

is it made by w3schools??

nimble epoch
#

i think

muted stump
#

w3schools is one of my fav websites of all time

nimble epoch
#

good

#

but i dont know why someone gotta prefer w3.css while theres a bootstrap outhere

wicked elbow
#

i dont like using prebuilt honestly, html and css arent difficult

nimble epoch
#

without them setting up layout are so difficult using css

muted stump
#

copy your discord name and tag by clicking on it multiple time

muted stump
sand glen
#

i've made a flask application and want to host it on my IP, what do i do?

#

atm its localhost only

nimble epoch
muted stump
#

but finding a style in bootstrap takes TTIIMMEE

#

with css you are basically unlocking freedom of going crazy with the design

nimble epoch
#

really i think you are not familier with it

muted stump
#

yeah im not

nimble epoch
#

better check it

#

its not hard

#

if it takes your time once the css takes more than that FOREVER

#

you know repeating that long code over and over

#

for diff things

muted stump
#

who is john doe and jane doe

nimble epoch
#

idk lol

muted stump
#

its being used as dummy data a lot

nimble epoch
#

oh

#

oh my god who are they i just checked but they didnt match my eye

muted stump
#

also john smith is another dummy data character

native tide
nimble epoch
muted stump
nimble epoch
#

oh

sand glen
muted stump
#

well i thing you should be able to do it if its linux

#

as all servers are linux

nimble epoch
muted stump
#

no he want it to be accessible to everyone

nimble epoch
#

oh

muted stump
#

but host it on his computer

nimble epoch
#

i think its hard

muted stump
#

@sand glen i think Rabbit can help you

nimble epoch
#

you should use web servers like gunicorn

muted stump
#

gunicorn??

sand glen
#

i only want this so i can "stress test" my website

#

like

#

give people access and make them do their worst

#

find vulnerabilities/issues before i deploy long term

nimble epoch
#

i watched a clip and it was hard to setup on your own system and it took time

nimble epoch
sand glen
#

theres only so much i can test

nimble epoch
#

and itll take time people test it

nimble epoch
muted stump
nimble epoch
#

green unicorn lol

muted stump
#

what is that

#

what is special about it

sand glen
#

what about apache web server

nimble epoch
nimble epoch
muted stump
#

oh i thought it was a "unicorn"

nimble epoch
#

it is based on unicorn if im right

native tide
sand glen
#

oh

#

i know what that is

#

but i was thinking stresstesting as in testing logins etc

#

and more

native tide
#

Sounds like you'd want a testcase, testing different regex patterns within your forms and whatnot.

sand glen
#

bruh

#

advertising

#

@quiet ridge

quiet ridge
#

No it's not paid I m just asking for a partner to help me

#

@sand glen

sand glen
#

INCLUDING requests for paid work

#

thats unapproved advertising

quiet ridge
#

It's not paid man

sand glen
#

so you should delete the message

#

yeah and?

#

you're not allowed to post unapproved advertising

quiet ridge
#

Okay fine

#

Is it okay now

sand glen
#

just dont advertise alright

manic frost
native tide
#

I always feel like a chump because I can do grids with bootstrap only and not raw css ๐Ÿ˜‚

wicked elbow
#

i dont use grid, i plan out my my widths and build containers for everything and use flex. not incredibly hard

toxic flame
#

i like using tailwind for everything coz its basically all i need to get everything setup and do backend

#

Honestly i love backend alot more than fronted reeeee

quick cargo
#

tailwind is a very nice framework

toxic flame
#

Not sure if its a framework

static wind
#

anyone know how to setup a flask app with cpanel, i've tried a bunch of stuff but i'm getting only 503 service unavailable

#

when i try running through the console the app just straight up doesn't launch

cunning mortar
#

Hi everyone, i am using bcrypt to encript my users password and and i got an error of encoding before hashing so i encoded to utf8 and i got the following error

#

AttributeError: 'bytes' object has no attribute 'encode'

#

can you please tell me what im doing wrong?

fallow void
cunning mortar
#

im trying to compare encrypted passwords with the ones on my db

cunning mortar
cunning mortar
cunning mortar
ripe matrix
#

hi

#

How can I find out the device model?

#

on flask

native tide
#

device model of a connecting client?

#

or the machine thats running flask

native tide
#

@cerulean vapor yo

#

I rebooted my mac mini and I setup my pyenv again

#

and Bottle is fast

native tide
#

Anyone here that can tell me what server I should use for my Bottle app?

native tide
#

Hey I have a question. If I use ".send_keys('Blablabla')" is there a way it types slower then normal? Because when I do it the normal way it types very fast the thing I want to write. In this case "Blablabla"

#

using selenium btw.

cerulean vapor
#

@native tide by "server" do you mean the actual hosting stack for making something publicly available?

native tide
#

yea

#

Like nginx

cerulean vapor
#

Nginx and Apache are the two most common choices

native tide
#

gah

#

chokes

#

why not Caddy

cerulean vapor
#

I have honestly never heard Caddy mentioned

native tide
#

; - ;

#

Its nice

cerulean vapor
#

the hosting I use is entirely Apache so I have no choice in the matter, in my case

native tide
#

ouch

cerulean vapor
#

so it's going to revolve largely around the hosting options and what they support

fickle karma
#

@native tide how about a for loop with a time.sleep for every character u want to send

cerulean vapor
#

yes, I'm outgrowing them for this project, I may have to set up something more ambitious, but for now it's cheap and it works

native tide
#

Thanks!

#

@cerulean vapor why not write a WSGI -> FCGI adapter if possible

cerulean vapor
native tide
#

:v)

cunning mortar
#

hello, any recommended library to show graphs on flask based website?

native tide
#

@cunning mortar

cunning mortar
native tide
#

No prob bob

lament sundial
#

?

static wind
#

sure i can pull them up

#

2021-02-14 12:57:29.853932 [WARN] [64583] [p...:15800744] cannot determine application type at /home/[redacted]/walterclements/, disable it.
is the only relevant thing i can find

#

everything else is just "file not found " for things unrelated

elder nest
#

I know this isnt really python but google didnt have anything. but its kind of webish? what type of record would us1.falixnodes.net:55903 be

#

I am trying to set it up on dnsafraid

#

because A record doesnt work

spice bloom
#

Sup everyone

#

I'm new to domain and hosting. I've got some programmiing skills. Anyway, I bought a host on namecheap.com, and I own hosting on digitalocean.com. First, where do I store an index.html on my host, and then how do I point my namecheap.com domain to load up my host?

cerulean vapor
#

DIgitalocean's docs should have information about how to set up a domain name to point at their DNS servers

#

and each host has different ways to set up a website with a domain

opaque inlet
#

I'm having a problem with getting post requests from patreon, I'm using a webhook to get these post requests

#

When I tested with other webhook testers, it returned a status code of 200 as expected, but with patreon's test, it returns a 400

#
from flask import Flask, request, Response


app = Flask(__name__)

@app.route('/webhook', methods=['POST'])
def respond():    
    return Response(status=200)
#

That's my code

#

oh, I found the problem

wicked elbow
#

ok so im doing something similar to this, using django/rest how do i return all the data linked to the table.

basic example:

class Group(models.Model):
    name = models.CharField(max_length=100)

class Student(models.Model):
    name = models.CharField(max_length=100)
    group = models.ForeignKey(Group)

if i run a lookup on group, how do i respond with

{
  [
    name:'group1'
    students: ['stud1', 'stud2']
  ]
  [
    name: 'group2',
    students: ['stud3', 'stud4']
  ] 
}
``` or something similar?
vestal hound
#

make a GroupSerializer

#

that contains a StudentSerializer

#

then GroupSerializer(instance=queryset, many=True).data

#

basically

wicked elbow
#

yes, i got that, but how is it set in the serializer fields? thats what im struggling with. i know the relationship exists, but dont know how to make it a response

vestal hound
#
class StudentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Student
        fields = ['name']

class GroupSerializer(serializers.ModelSerializer):
    students = StudentSerializer(many=True)
 
    class Meta:
        model = Group
        fields = ['name', 'students']
#

remember to change related_name

wicked elbow
#

clearly you can type much faster then me

#

ok, ill try that

wicked elbow
# vestal hound uh

that worked perfectly, thank you so much... been racking my brain. little over my head in the terms of backend coding

wicked elbow
#

i knew the forward relation, but not how to do it in reverse.

vestal hound
#

I had to figure it out myself a few months ago

#

it can be painful

wicked elbow
#

django/rest has weird ways to do things with poor documentation that doesnt explain much

vestal hound
#

ye

#

it's hard to write good documentation

#

and honestly I'm not a fan of the codebase

#

stack traces are hard af to read

#

although I suppose that comes with the level of abstraction

#

on the good side though

#

lots of stuff comes out of the box

lament raft
#

which is the best place to host flask app for free , with database support

wicked elbow
wicked elbow
nimble epoch
lament raft
wicked elbow
#

heroku works too. most free services limit you though. cant also just set up a server/dev server on your own pc and not need a host

ripe matrix
native tide
ripe matrix
native tide
#

@ripe matrix that data is in the User-Agent request header that your clients send to your server with every their request

#

inside of your function in flask you can access that value with:
request.headers['User-Agent']

#

and here is how to "process" that value and find out what device is being used

robust mulch
#

I need a sanity check, Does the REST api have any way to update a website without the user requesting the update?

#

I've been searching online but I don't think I'm wording my query right

vestal hound
#

you want

#

the server to push data to the user

#

without the user first sending a request?

robust mulch
#

i'm already using websockets for that

#

So I know my way around this

#

It's just I read something online and now I'm confused

vestal hound
#

huh

#

okay, maybe you can elaborate further then

robust mulch
#

And I don't want to write something incorrect in my report

#

REST is request-response cycle right?

vestal hound
#

strictly speaking, no

robust mulch
#

and there haven't been any updates whatsoever?

vestal hound
#

that's HTTP

robust mulch
#

Oh yeahhhh

vestal hound
#

REST does not need to be over HTTP

robust mulch
#

cause REST is a guideline?

vestal hound
#

no

#

it's an API architecture

robust mulch
#

It's an architectural style no?

#

ye

nimble fractal
#

Hello guys, I'm going to write a web application using a react frontend, and postgres / postgis database. We are unsure whether we should use a geodjango backend, or an express.js backend. We might consider other backends, if using something else is smarter. The application will display large amounts of data, similar to solutions like this: https://www.globalforestwatch.org/map/

The reason for geodjango:
Good implementation of geospatial functions
Easy to write in python

The reasons for express.js / turf.js:
Potentially faster
Potentially more lightweight

Anyone have experience using these frameworks to give me some advises and help me to choose?

tiny patio
#

HI

#

I AM NEW

#

CAN I learn something

#

about python web development

#

where to start

#

how to do

#

etc..

#

where to learn about this

brisk spear
#

Hey

#

I installed sqlalchemy but when I run the app.py file it says no module found

#

I also imported everything required

brisk spear
# tiny patio HI

Start by learning HTML, CSS and then go for flask microframework of python

shrewd mural
#

Hey, I'm currently working on a personal project (I don't think I'll be able to make it being a "real" thing, but let's hope), during my studies I used a lot Python, and a bit of Flask, PHP & Symfony.. I'm wondering if it is "worth it" to learn Django and make the backend with it instead of Flask, or some PHP alternatives like Symfony

austere cloud
native tide
#

how would i check if an object already exists in the db in django

hybrid bobcat
#

oh um so like i ran pip freeze > requirements.txt hoping it to install all the dependencies listed in there, but instead, it deletesd my requirements.txt file, why is that?

gaunt socket
#

Hi, can someone tell me why my code is going over the border and isnt listing vertically? Ill post a picture in a second

cold portal
gaunt socket
#

Ill give it a shot now. Thanks!

cold portal
#

np

limber laurel
#

Does this mean they have debug mode enabled?

#

As shouldnt a regular person not see this shit?

swift sky
#

how can i have multiple forms in one view

#

trying to implement a search button to query the user db, then another form to update those changes to the user profile

#

im currently getting a jinja exception, template not found (even though template exists) and i suspect this is happening because of a validation error

cold portal
#

i used tabs and provide two forms in the context

swift sky
#

which probably has to do with how i set up my code

#

i can post the html too

#

if i do this

#

# if which_user_form.submit2.data and which_user_form.validate_on_submit():

#

i get a jinja2.exceptions.TemplateNotFound: admin_update_single_user.xhtml

cold portal
#

sorry, no input on this one

swift sky
#

:/

#

ok

native tide
#
app 
   ----cli
       ----__int__.py
       --- test.py
   ----db
       ---__init__.py
       ---models.py
#

Anyone has idea why would i get an input error for db module when trying to run python cli/test.py

fallow void
#

Your test is probably importing db module

native tide
#

yeah but i need it

fallow void
#

Time to debug then

marble gate
#

Has anyone used Mongo alchemy in fast api before?

hybrid bobcat
#

Hey guys I'm currently using Flask and my templates are now unable to get static files from the static folder.
I am now trying to build an url endpoint for static files so my html files can reference the static files like this

<link type="text/css" rel="stylesheet" href="/static/css/bootstrap-theme-3.1.1.min.css" />

so I built the view function like this


@app.route('/static/css/<path:filename>')
def static_files_css(filename):
    return send_from_directory('static', filename=filename)

but unfortunately, it doesn't work, how can I fix it?

#

i also found out that flask has a default /static url path, but when i visit it, it says its not found

native tide
#

yo

#

@hybrid bobcat where's perry?

hybrid bobcat
#

here

native tide
#

Heh

spare iris
#

hello

native tide
#

@glossy arrow

glossy arrow
#

Hey

native tide
#

you here my dude?

#

ay

glossy arrow
#

Yeah

native tide
#

want to make an awful .io game?

#

put 300000000k ads on it

glossy arrow
#

Lmao

native tide
#

Literally so many ads that when you open it on a iPad the iPad bursts into flames