Websites that are programmed with Flutter Web seem to have an issue when scrolling with the scrollwheel on the browser Firefox. Scrolling up and down with the scrollwheel does very small steps which gives a bad user experience. I tested this issue on alot of browser it only appears on Firefox. I also tested it on a bunch of different websites they all have the same problem. My website is https://alikortak.de if you want to try it yourself. Does anyone know how to fix this?
vendredi 1 janvier 2021
Are web development languages like HTML, CSS, and JavaScript obsolete in 2021 and beyond? [closed]
I know that these are the main languages that can be used to construct websites and put them out on the internet. However, I also know that there are services like Wix and WordPress that allow people to create websites a lot faster than programming from scratch, and that also requires no coding experience at all.
What are the pros and cons of using sites like Wix and WordPress? How about coding from scratch?
If there is an easier and faster way to create any website you want, that also requires no programming skills at all, have web developers and web development languages (HTML, CSS, JavaScript, etc) become obsolete in the near future, if not right now? Why or why not?
How can I build a site like Facebook Ai/ Google Ai?
I am looking for an open source repository that I can use to build a website with functionality/design like Facebook AI https://ai.facebook.com or iGenius https://igenius.ai. Main purpose of my site is to publish research papers, provide APIs, and possibly authenticating certain users for API dashboard access.
I know I can create very expressive sites on Webflow, etc but I would like to avoid vendor lock-ins and want the flexibility to host it anywhere. I am also going to be integrating with other APIs so preferably would like to be able to access the source code or ability to plug in my APIs
Can someone explain how to build such a site effectively and/or share any great repositories you know of?
Thank you!
jeudi 31 décembre 2020
How to sync my local database of my web app to database of my deployed web app?
So my project is a school distributed system based on django web framework. My web app will be deployed in every school on their local computers. And all of the data on those computer will by synced with a main server on my side. What I want is how to implement a solution that would help me sync files/data with my server such that if some file/data is changed on a local computer it'll replicate itself in our server and if I change some file/data on my server, it'll update on those local computers whenever they get an internet connection.
Django Product object has no attribute author
hi i am not new to django but i can not find the error . may be a new pair of eyes can saw that i just import usertestmixin and wrote the function test_func() but it is not working i do not know why it gave me the error 'Product' object has no attribute 'author'
my models for product is:
class Product(models.Model):
title = models.CharField(max_length=110)
slug = models.SlugField(blank=True, unique=True)
price = models.DecimalField(decimal_places=2, max_digits=6)
discount_price=models.FloatField(blank=True, null=True)
size = models.CharField(choices=SIZE_CHOICES, max_length=20)
color = models.CharField(max_length=20, blank=True, null=True)
image = models.ImageField(upload_to=upload_image_path)
description = models.CharField(max_length=1000)
featured = models.BooleanField(default=False)
time_stamp = models.DateTimeField(auto_now_add=True)
and my models.py for user is:
class User(AbstractBaseUser):
email = models.EmailField(max_length=255 ,unique=True)
full_name = models.CharField(max_length=255, blank=True, null=True)
active = models.BooleanField(default=True) #can login
staff = models.BooleanField(default=False) #staff user non super user
admin = models.BooleanField(default=False) #superuser
time_stamp = models.DateTimeField(auto_now_add=True)
and my views.py is:
class ProductUpdateView(LoginRequiredMixin, UserPassesTestMixin, UpdateView):
model = Product
template_name = 'product-form.html'
fields = ['title', 'price' , 'size' , 'color', 'image' , 'description']
def form_valid(self, form):
form.instance.author = self.request.user
return super().form_valid(form)
def test_func(self):
self.object = self.get_object()
return self.request.user == self.object.author
it gave me the error:enter image description here
Recommendations for backend [closed]
I'm just starting to do some backend as hobby, but I have a big question,
Would it be better to learn a server-side language like NodeJS or PHP or try to have a website in HTML, CSS and Vanilla JS and run my Python scripts from there?
I have been using Python for a year and a half and I'm new in the web development and I haven't learn PHP or NodeJS so I would like your recommendations on this
Modeling relational database tables for tracking status of stages and tasks within stages
I'm trying to model a relational database for a web-based, project tracking app. In the interface, I want to display all of the stages of the project and all the tasks within those stages - for example:
Stage 1: Planning do these things
Task 1: do this planning activity first
Task 2: do this planning activity second
Stage 2: Start coding based on requirements
Task 1: do this coding requirement first
Task 2: do this coding requirement second
At the end of each task I would have a drop-down for users to select the status of each task (Not-Started, In-Progress, Blocked, Completed)
For tables to model the stages and tasks that will populate the interface, I'm thinking something like these:
tbl_stages
id
stage
tbl_tasks
id
stage_id
task
The tables for storing projects and statuses would look something like this:
tbl_projects
Project_ID
Project_Name
Status_ID
tbl_statuses
id:
s1_t1
s1_t2
s1_t3
s2_t1
s2_t2
So tbl_projects is the primary table and it would have a 1-to-1 relationship with tbl_statuses. The part I'm not sure of is how or do I even need to relate tbl_statuses to tbl_stages and tbl_tasks. I believe that the relationship between tbl_statuses and tbl_stages would be many-to-many. But maybe I just need to track tasks in tbl_statuses because the tbl_stages values can be calculated based on the state of their child tasks. I'm thinking I need some other relational tables just to track many-to-many relationships also.
Hope someone can provide guidance, I'm feeling out of my league at this point.
Here is visio diagram of what I'm thinking so far:
