Create a logging system to log user activity in Django - mysql

I would like to have a functionality to log a user activities after they have been logged into my Django app. The log will consist of user tracking details such as how long a user spent on a webpage, how often the webpage is being served up for the user. Mainly getting details on how popular a certain webpage or data in my Django app so that I could create more content that users prefer. Any ideas or tools to implement this?

Thanks for the suggestions. However after researching I managed to find Posthog to be the most suitable. https://github.com/PostHog/posthog

Related

Enterprise Validation check login true or false and retrieve user information?

I am building an web app that is going to run on an intranet. I would like to query the client's system to determine if they are logged in with their Enterprise credentials. Also, if possible read the credential to find the name of the user. I am not sure where to start with this and any resources or tutorials would be greatly appreciated.
I have previously done something similar with excel dashboards, where I have used the user information to display names on splashscreens, but no idea how to implement that with a web app.
Thank you.

Creating individual user profiles

I am working on a project and one of the key components is creating customized user profiles. I already have a schema design for the user data that will generate said profile. But I am lost on how the technology works.
I am mostly front-end so it has been sort of overwhelming. The goal is to allow multiple user profile creations and so far I have only seen that this can be achievable via NodeJs or PHP. I have not found any guides.
I am not sure if I am asking the right questions.
Any help is appreciated. Thank you.
Since you mention you already have schema for the user table, I assume you are going to design your own database and backend node.js API to handle user profiles. You may want to build authentication functionalities in the future. If you are not familiar with Node.js yet, I recommend you to start with https://www.tutorialspoint.com/nodejs/index.htm. It's a good tutorial for beginners.
The whole purpose of a back-end node.js API is building numbers of service with specified route. Once a http request is made to a particular path, it takes parameters and execute some script. In you case the scripts will do something in database containing user profile data, for example, add a row in your data table. This operation is equivalent to creating a new user. Then, the API send response to front-end.
Keep in mind maintaining user profile data is nothing special than regular data. You should be able to pick it up with a couple of days training if you know javascriopt. But if you have to build authentication functionality you need more technologies.

HTML: How to design profile page that is used for different users

I want to make a website for my Android social networking app and need some assistance with a basic concept regarding user profile pages. So right now I have a native Android app where users have their own profile page displaying their profile stats, e.g. followers etc. and I would like to do something similar in HTML. My question is how can I design a generic profile.html page that displays the current user's username/stats and that can be used for different users? For example, see how Facebook are using the same profile page for each user but they replace the name/bio/stats fields with the data for the current user, how is that done - at the server side (by replacing the appropriate fields with the data for the current user), or at the client side (by loading them with a separate script after the page has loaded)?
Also, I am using a Tomcat servlet to deal with the requests if anyone is interested.
Thanks for any assistance and sorry if the question is silly :)
You would have to use PHP. Think of webpages as a mathmatical equation where HTML is 3+4=12 but PHP is 3+X=12. HTML is already defined, you can't change it. Where PHP you can code the entire page but get the bio or username from a database.
But you should be warned that this is no simple task, you would have to create a large mySQL database, possibly more to handle logging in and out and use the PHP to define what you are calling for form the mySQL database.
It is possible, but not in a day.

Save wordpress passwords/logins to another database at the same time on registration?

A client im working for has created a web app that uses a password and user name to sync data to a cloud. He wants a website to sell the web app through and serve as a support forum for this i was thinking of using wordpress with buddypress and the marketpress plugin from WPMUdev. We'd love to be able to sync the user names and passwords so that they're the same on the support forum and when they sync their data to the cloud.
So what we would need to do is store the password and username in another database table that the app can access or find a way for the app to access password and username tables within the wordpress database. I cant really find any pages in the wordpress docs or elsewhere that detail how passwords and usernames are stored on registration. Has anyone tried/done this before? Or does anyone know where i can find some information on the process wordpress goes through to store and retrieve passwords?
Cheers,
Jonny
This can be done by replacing the Wordpress default register screen with a custom one developed in the theme by a template for explample.
You can then use the wp_insert_user/wp_create_user function to register the user and in the same time to insert the details in the other database

Create a News feed from a database as the source

I have a database that I would like to poll and post data from similar to a newsfeed. I have already generated the queries, mysql is the db, to provide the data that I require. What I am not certain about is how to use rails to access the DB and provide updates, based upon 3 minute intervals.
I have worked with tutorials and created the opposite effect, where a user enters a feed and it is posted, along with stored in a database. Being fairly new I am not certain how make the app talk to the db on regular intervals and post it to the site.
To sum it up it would be like this:
Web app polls DB --> Web App looks for specific criteria(like customer name and code) -->Data posted in news feed on web site. -->old news scrolls down the page
You may benefit from reading this question and answers:
How do I create a facebook style news feed in ruby on rails?