Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Celery + Locks = Bad Runtime
I'm using Celery with my Django project. I use redis to lock tasks to one-at-a-time. This results in a totally wrong runtime (3 tasks received, 10 seconds each means the last one will have a runtime of 30s because it's from when task was received and not from when the task was run). How can I set the time celery starts counting runtime from manually? -
How to Handle When Request Returns None
I have a list of IDs which corresponds to a set of records (opportunities) in a database. I then pass this list as a parameter in a RESTful API request where I am filtering the results (tickets) by ID. For each match, the query returns JSON data pertaining to the individual record. However, I want to handle when the query does not find a match. I would like to assign some value for this case such as the string "None", because not every opportunity has a ticket. How can I make sure there exists some value in presales_tickets for every ID in opportunity_list? Could I provide a default value in the request for this case? views.py opportunities = cwObj.get_opportunities() temp = [] opportunity_list = [] cw_presales_engineers = [] for opportunity in opportunities: temp.append(str(opportunity['id'])) opportunity_list = ','.join(temp) presales_tickets = cwObj.get_tickets_by_opportunity(opportunity_list) for presales_ticket in presales_tickets: try: if presales_ticket: try: cw_engineer = presales_ticket['owner']['name'] cw_presales_engineers.append(cw_engineer) except: pass else: cw_engineer = '' cw_presales_engineers.append(cw_engineer) except AttributeError: cw_engineer = '' -
django-pyodbc: my odbc driver on my old machine worked but now I'm getting a error saying my driver "doesn't support modern datatime types"
I'm trying to develop an app in Django. I recently got a new work machine and that is the only thing that has changed. My last computer was running Windows 7. The server is running Windows 7 enterprise. My new computer is running Windows 10 pro. My database is being run in SQL Server 2012. I'm using the django-pyodbc-azure package. Error: django.core.exceptions.ImproperlyConfigured: The database driver doesn't support modern datatime types. here's my database setup: DATABASES = { 'default': { 'NAME': 'auth', 'HOST': 'x.x.x.x', 'PORT': '', 'ENGINE': 'sql_server.pyodbc', 'OPTIONS': { 'driver': 'SQL Server Native Client 11.0', }, }, 'EZCORP': { 'NAME': 'database', 'HOST': 'x.x.x.', 'PORT': '', 'ENGINE': 'sql_server.pyodbc', 'OPTIONS': { 'driver': 'SQL Server Native Client 11.0', 'dsn': 'mydsn', }, }, } -
What are the practical differences between django-python3-ldap and django-auth-ldap?
I have a functioning Django REST Framework project, which uses basic and JWT authentication. I'd like to add LDAP support to the project, but I found two very similar packages: django-python3-ldap Depends on ldap3 django-auth-ldap Depends on python-ldap We need to support Python 3.6, 3.7, and PyPy3.6 on Linux, macOS, and Windows. Both packages seem to do the same job and both seem to still be maintained. What are the practical considerations or functional differences between these two packages? Are there important features that one has over the other? Does one integrate better with Django REST Framework than the other? -
Django login and functioning
I am really new to Django and I am trying to make a little Time Attendance application. However, I am a bit confused. I've always heard that Django is the go-to for new developers but I think I'm doing something wrong here. I want to understand how Django works. More specifically, I would really appreciate help if you guys could help me understand the follow: So, I've watched countless YouTube videos regarding Django. In all of them, people put path("login/", LoginView.as_view(template_name='folder/htmlLoginFile.html'), name="loginNameForThatView") in their app's urls.py inside the urlpatterns. Then they proceed to edit their htmlLoginFile.html, put a form inside it with a post method and in there, they ptthese two lines {% csrf_token %} {{ form.as_p }} and running that server and going to that link shows a magical login form that actually works. What everyone fails to mention is a) How the back-end works. How does it read the data inside the input tags of that form, how Django actually receives data from the input tags in HTML. b) How does one make their own forms and how do they connect their forms to their own databases. I understand that this may be a lot to ask but … -
Conntect Django with sql server
How can i connect My proyect Django in visual studio to my sql server with SQL server Authentication. Python 3.7 Django 2.2.4 -
how continuously run function on page request
I want to use third party's REST API providing real-time foreign exchange rates in my django app which should continuously show changing exchange rates. my code works but only on every page reload. but I want my code to be running continuously and showing exchange rate on page even if the page is not reloaded def example(request) RATE__API_URL = 'REST API url' while True rate = requests.get(RATE__API_URL).json() b = rate['rates']['EURUSD']['rate'] context = {'b': b} return render(request, 'example.html', context) code is running and does not show any errors -
Django calling model save twice producing index error
I have the following code for generating thumbnail. def make_thumbnail(dst_image_field, src_image_field, size, name_suffix, sep='_'): """ make thumbnail image and field from source image field @example thumbnail(self.thumbnail, self.image, (200, 200), 'thumb') """ # create thumbnail image image = PImage.open(src_image_field) image.thumbnail(size, PImage.ANTIALIAS) # build file name for dst dst_path, dst_ext = os.path.splitext(src_image_field.name) dst_ext = dst_ext.lower() dst_fname = dst_path + sep + name_suffix + dst_ext # check extension if dst_ext in ['.jpg', '.jpeg']: filetype = 'JPEG' elif dst_ext == '.gif': filetype = 'GIF' elif dst_ext == '.png': filetype = 'PNG' else: raise RuntimeError('unrecognized file type of "%s"' % dst_ext) # Save thumbnail to in-memory file as StringIO dst_bytes = BytesIO() image.save(dst_bytes, filetype) dst_bytes.seek(0) # set save=False, otherwise it will run in an infinite loop dst_image_field.save(dst_fname, ContentFile(dst_bytes.read()), save=False) dst_bytes.close() class Image(models.Model): path = models.ImageField(upload_to=photo_image_upload_path,blank=False, null=False) thumb = models.ImageField(upload_to='', editable=False, default=None, null=True) def save(self, *args, **kwargs): # save for image super(Image, self).save(*args, **kwargs) print("#1") ext = self.path.name.split('.')[-1] make_thumbnail(self.thumb, self.path, (150, 150), 'thumb') print("#2") # save for thumbnail and icon super(Image, self).save(*args, **kwargs) print("#3") This leads to the output: #1 #2 duplicate key value violates unique constraint "media_image_pkey" DETAIL: Key (id)=(7) already exists. The image is uploaded to this model through a primary model and references … -
Django Admin throwing "generator StopIteration" error while creating User
I have defined a custom user model by extending the django's AbstractUser. So when i try to create the user from djano admin page it get the generator stopiteration error. Below is the trace back. Environment: Request Method: POST Request URL: http://127.0.0.1:8000/admin/users/user/add/ Django Version: 1.8 Python Version: 3.7.3 Installed Applications: ['posts.apps.PostsConfig', 'users.apps.UsersConfig', 'common.apps.CommonConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'crispy_forms'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback: File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/core/handlers/base.py" in get_response 125. response = middleware_method(request, callback, callback_args, callback_kwargs) File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/middleware/csrf.py" in process_view 174. request_csrf_token = request.POST.get('csrfmiddlewaretoken', '') File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/core/handlers/wsgi.py" in _get_post 137. self._load_post_and_files() File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/request.py" in _load_post_and_files 260. self._post, self._files = self.parse_file_upload(self.META, data) File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/request.py" in parse_file_upload 225. return parser.parse() File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/multipartparser.py" in parse 149. for item_type, meta_data, field_stream in Parser(stream, self._boundary): File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/multipartparser.py" in __iter__ 628. yield parse_boundary_stream(sub_stream, 1024) File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/multipartparser.py" in parse_boundary_stream 567. chunk = stream.read(max_header_size) File "/home/rohit/.virtualenvs/django-env/lib/python3.7/site-packages/django/http/multipartparser.py" in read 337. out = b''.join(parts()) Exception Type: RuntimeError at /admin/users/user/add/ Exception Value: generator raised StopIteration This only happens when creating the user with Django Admin, otherwise from django shell it works just fine. This is how my Custom User model looks like class User(AbstractUser): description = models.TextField('profile summary', null=True, blank=True) location = models.CharField('Location', max_length=50, null=True, … -
Django multiwidget for CharField form field
I'm trying to understand how to write a multiwidget for a form field in Django. I have a checkbox field and then a CharField which I would like to enable/disable with Javascript based on whether the checkbox field has been selected, so am trying to add an 'id' to both fields. I understand that this requires a multiwidget but I'm struggling to understand how to go about this. from django import forms PRIORITY_CHOICES = [('high', 'High'), ('low', 'Low')] class UploadForm(forms.Form): gender_select = forms.BooleanField(label='Even Gender Distribution', required=False, widget=forms.TextInput(attrs={'id':'gender_select'})) gender_priority = forms.CharField(label='Select Priority', required=False, widget=forms.Select(choices=PRIORITY_CHOICES)) Just like the 'gender_select' field, I need to add the following to 'gender_priority': forms.TextInput(attrs={'id':'gender_priority'}) but as far as I understand, I can only include one widget. How would I go about including more than one? -
Are we still need CSRF cookie in Django when SAMESITE enable?
There is the samesite cooike that can protect user from CSRF attack. so are we still need enable the Django's django.middleware.csrf.CsrfViewMiddleware or we can safely disable it now? -
Django Heroku : python: can't open file 'manage.py': [Errno 2] No such file or directory
I am deploying a Django website on Heroku. My project is called mysite-project wich contains at its root manage.py and Procfile I can visit the heroku website after I run git push heroku master. And the website shows: I am assuming I do not see anything (navbar, initial page etc) because I did not run migrate. If I do: heroku run python manage.py migrate I get the error: python: can't open file 'manage.py': [Errno 2] No such file or directory Which makes no sense since I am in the right directory. In fact: I can run python manage.py runserver and locahost works git ls-files manage.py --outputs--> manage.py BUT If I do: heroku run bash ls manage.py I get: ls: cannot access 'manage.py': No such file or directory It seems that manage.py is in my local but not in my heroku. Procfile web: gunicorn mysite-project.wsgi -
HTML templates or React for Django front end?
I’m creating a big project with Django and wondering if it is sensible to use the HTML template structure for my front end or should I implement something like React? What are each of its benefits? Is it perfectly reasonable to use HTML templates for a big project? Any advice? -
Blog - How to fix being unable to see specific category group when category is clicked via drop down box?
I'm trying to organize the blog categories I have a few "Test Post" I created and when I start up the server, click on that relevant category tag to that post the page doesn't show that page relevant to that category. It's not rendering out anything but the header and the sidebar. Models.py from django.db import models from django.urls import reverse from tinymce import HTMLField from django.utils import timezone class Comment(models.Model): post = models.ForeignKey('Post', on_delete=models.CASCADE, related_name='comments') author = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=timezone.now) approved_comment = models.BooleanField(default=False) def approve(self): self.approved_comment = True self.save() def __str__(self): return self.text class CategoryTag(models.Model): title = models.CharField(max_length=150) slug = models.SlugField(unique=True) parent = models.ForeignKey( 'self', on_delete=models.CASCADE, blank=True, null=True, related_name='children' ) class Meta: unique_together = ('slug', 'parent',) verbose_name_plural = 'categories' def __str__(self): full_path = [self.title] k = self.parent while k is not None: full_path.append(k.title) k = k.parent return ' -> '.join(full_path[::-1]) class Post(models.Model): title = models.CharField(max_length=100) overview = models.TextField() timestamp = models.DateTimeField(auto_now_add=True) content = HTMLField('Content') comment_count = models.IntegerField(default=0) post_img = models.ImageField() categories = models.ForeignKey('CategoryTag', null=True, blank=True, on_delete=models.CASCADE) featured = models.BooleanField() slug = models.SlugField(unique=True) def __str__(self): return self.title def get_cat_list(self): k = self.categories breadcrumb = ["dummy"] while k is not None: breadcrumb.append(k.slug) k = k.parent for i … -
Djoser doesn't work on endpoint create user
I am trying to implement djorse in my project with django-rest-framework, but when trying to create or delete a user, the endpoints do not work, since they are not configured. How can i fix that? I already configured the django settings file to integrate djoser, but it still doesn't work correctly. settings.py DJOSER = { "ACTIVATION_URL": "activate/{uid}/{token}/", "PASSWORD_RESET_CONFIRM_URL": urllib.parse.urljoin( WEB_APP_URL, "/password/reset/confirm/{uid}/{token}" ), "EMAIL": { "activation": "users.emails.ActivationEmail", "confirmation": "djoser.email.ConfirmationEmail", "password_reset": "users.emails.PasswordResetEmail", }, "PERMISSIONS": { "activation": ["rest_framework.permissions.AllowAny"], "password_reset": ["rest_framework.permissions.AllowAny"], "password_reset_confirm": ["rest_framework.permissions.AllowAny"], "set_password": ["djoser.permissions.CurrentUserOrAdmin"], "set_username": ["rest_framework.permissions.IsAuthenticated"], "user_create": ["rest_framework.permissions.AllowAny"], "user_delete": ["rest_framework.permissions.IsAdminUser"], "user": ["djoser.permissions.CurrentUserOrAdminOrReadOnly"], "user_list": ["crm.permissions.IsAdminOrCoach"], "token_create": ["rest_framework.permissions.AllowAny"], "token_destroy": ["rest_framework.permissions.IsAuthenticated"], }, "SEND_ACTIVATION_EMAIL": True, "SET_PASSWORD_RETYPE": True, "SERIALIZERS": { "current_user": "auth.serializers.CurrentUserSerializer", "user": "auth.serializers.CurrentUserSerializer", "user_create": "users.api.serializers.UserRegistrationSerializer", }, } users/serializers.py class UserRegistrationSerializer(UserCreateSerializer): email = serializers.EmailField( max_length=200, validators=[ UniqueValidator( queryset=User.objects.all(), message=USER_ALREADY_EXISTS_ERROR_MESSAGE ) ], ) class Meta(UserCreateSerializer.Meta): pass urls.py urlpatterns += [ path("crm/", include("crm.urls", namespace="crm")), path("workouts/", include("workouts.urls", namespace="workouts")), path("api/v1/auth/", include("auth.urls", namespace="auth-api")), path("api/v1/accounts/", include("djoser.urls")), path( "api/v1/accounts/users/activate/<str:uid>/<str:token>/", ActivateAccountView.as_view(), name="activate-user-account", ), path( "activation-failed", ActivateAccountFailed.as_view(), name="activate-user-account-failed", ), path("api/v1/", include("crm.api.urls", namespace="crm-api")), path("api/v1/", include("workouts.api.urls", namespace="workouts-api")), path("api/v1/documentation/", schema_view.with_ui("swagger", cache_timeout=0)), ] This is the error, when i {POST} request to endpoint api/v1/accounts/users/create { "detail": "Method \ "POST \" not allowed." } -
Django delete multiple ImageField files on model delete
I have an Image model with two ImageFields (one for regular image and one for the thumbnail). I'm trying to delete both files together with a post_delete receiver but I'm having difficulty chaining the operations. What I have throws a file does not exist error probably because only one delete saves. class Image(models.Model): path = models.ImageField(upload_to=photo_image_upload_path,blank=False, null=False) thumb = models.ImageField(upload_to='', editable=False, default=None, null=True) @receiver(post_delete, sender=Image) def photo_delete(sender, instance, **kwargs): # Pass false so FileField doesn't save the model. if instance.thumb is not None: instance.thumb.delete(True) if instance.path is not None: instance.path.delete(False) -
problems with this TypeError: save() missing 1 required positional argument: 'self' in pycharm django
I'm trying to save a query in the python shell in the terminal but it seems an error popped up saying this "Traceback (most recent call last): File "", line 1, in TypeError: save() missing 1 required positional argument: 'self'" I've no idea what to do. I'm trying to type this "post.save()" but the error above showed up after I pressed enter. All I am trying is to type this >>> from django.contrib.auth.models import User >>> from blog.models import Post >>> user = User.objects.get(username='admin') >>> Post.objects.create(title='One more post', slug='one-more-post', body='Post body.', author=user) >>> post.save() in the terminal I've already tried searching for the same problems that others are facing but none of it matches my problem. all of the codes in the models and the admin were correct. I've tried several websites and search for several problems that others have issues with but I couldn't find a solution for it. from django.db import models from django.utils import timezone from django.contrib.auth.models import User class Post (models.Model): STATUS_CHOICES = ( ('draft', 'Draft'), ('published', 'Published'), ) title = models.CharField(max_length=250) slug = models.SlugField(max_length=250, unique_for_date='publish') author = models.ForeignKey(User, related_name='blog_posts', on_delete=models.CASCADE) body = models.TextField() publish = models.DateTimeField(default=timezone.now) created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) status = models.CharField(max_length=10, … -
Page not found error 404 with django framework
I'm developing website for my resume using django framework and for styling i am using uikit css framework but facing problem with the url for contact template as it throws "page not found error" Request URL: http://localhost:8000/contact/ Using the URLconf defined in myresume.urls, Django tried these URL patterns, in this order: experience education contact admin/ The current path, contact/, didn't match any of these. i have tried using re url pattern and also trailing slash as mentioned in the official documentation. Contact template is available at myapp/templates/myapp/contact.html from django.urls import path from . import views urlpatterns=[ path('',views.home), path('experience',views.experience), path('education',views.education), path('contact',views.contact), ] i am expecting to render contact template in my browser -
Create db with django visual studio
Executing manage.py syncdb Unknown command: 'syncdb' Type 'manage.py help' for usage. The interactive Python process has exited. i have these archive in my enviroment package pip ptvsd pytz setuptools sqlparse -
How to Set Value for When Query is False
I am creating a list of IDs which corresponds to a set of records (opportunities) in the database. I then pass this list as a parameter in a RESTful API request where I am filtering the results (tickets) by ID. For each match, the query returns various JSON data. However, I want to handle when the query does not find a match. I would like to assign some value for this case such as the string "None", because not every opportunity has a ticket. For example, currently I pass opportunity_list = [1,2,3,4,5] and return presales_tickets = [a,b,c] when I want presales_tickets = [a,None,b,c,None]. How can I make sure there exists some value in presales_tickets for every ID in opportunity_list? views.py opportunities = cwObj.get_opportunities() temp = [] opportunity_list = [] cw_presales_engineers = [] for opportunity in opportunities: temp.append(str(opportunity['id'])) opportunity_list = ','.join(temp) presales_tickets = cwObj.get_tickets_by_opportunity(opportunity_list) for presales_ticket in presales_tickets: try: if presales_ticket: try: cw_engineer = presales_ticket['owner']['name'] cw_presales_engineers.append(cw_engineer) except: pass else: cw_engineer = '' cw_presales_engineers.append(cw_engineer) except AttributeError: cw_engineer = '' -
Publishing Data on Screen
I'm learning Django and did the exercise in this video and I get up about the 45 minute point and everything works fine: https://www.youtube.com/watch?v=D6esTdOLXh4 after that I can't ge the two blog posts to show up as it does in the video. I had named the new model "posts" unlike in the video which called the model "Posts" so I adjusted my code so instead of creating a variable "posts" I made it blogpost in view.py. Below I show the code for the model, view and index. THe problem is I can see the layout but it doesn't populate the blog posts in the jinja code. If I add static text, the static text shows fine. <h1>Model.py</h1> ''' /*from django.db import models from datetime import datetime # Create your models here. class posts(models.Model): title = models.CharField(max_length=200) body = models.TextField() created_at = models.DateTimeField(default=datetime.now, blank=True) def __str__(self): return self.title class Meta: verbose_name_plural = "Posts"*/ ''' Views.py ''' def index(request): # return HttpResponse('Hello from Posts') blogpost = posts.objects.all()[:10] context = { 'title': 'latest posts', 'posts': blogpost } return render(request, 'posts/index.html', context) ... Index.html ''' {% extends 'posts/layout.html' %} {% block content %} <h1 class="center-align red lighten-3">{{title}}</h1> <ul class="collection"> {% for blog in blogpost … -
Django migration delete and update
I have already had some migration files, and I made some changes in the model and did python manage.py makemigrations python manage.py migrate After that in postgresql table django_migrations there is a row indicating I've applied that migration, let's call this migrationA. I deleted the new generated migration file (migrationA), modified a small piece in my model and then did python manage.py makemigrations python manage.py migrate This generate migrationB. I was hoping this can do the same as squashing migration files. Will this kind of flow cause any trouble? I didn't see any trouble now but want to make sure this is a safe way to do things. In addition, is there any way to revert postgresql to the time before I applied migrationA? -
Error when push files to heroku (error: failed to push some refs to ...)
When I try to type "git push heroku master" in the console, I have the following problem. This is my second approach to heroku and again I have a problem in the same place, I was looking for advice on the Internet, but nothing helps me (venv) C:\Users\patryk\Desktop\Django\MyPage>git push heroku master Enumerating objects: 33, done. Counting objects: 100% (33/33), done. Delta compression using up to 4 threads Compressing objects: 100% (27/27), done. Writing objects: 100% (33/33), 17.14 KiB | 1.90 MiB/s, done. Total 33 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! Python has released a security update! Please consider upgrading to python-3.7.3 remote: Learn More: https://devcenter.heroku.com/articles/python- runtimes remote: -----> Installing python-3.7.4 remote: -----> Installing pip remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to xxx. remote: To https://git.heroku.com/xxx.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/xxx.git' requirements.txt file: -r requirements-dev.txt gunicorn psycopg2 requirements-dev.txt file: dj-database-url==0.5.0 dj-static==0.0.6 Django==2.2.4 django-bootstrap-form==3.4 djangorestframework==3.10.2 Pillow==6.1.0 python-decouple==3.1 pytz==2019.2 … -
Django pagination for api response objects
I am building a blogsite and I am using a cryptonews api to display the news on the page. I want to display 10 api objects per page. When I tried it as shown below I get an error. from django.core.paginator import Paginator from django.shortcuts import render def home(request): import requests import json # Grab crypto Price Data price_request = requests.get("https://min-api.cryptocompare.com/data/pricemultifull?fsyms=BTC,ETH,EOS,LTC,XRP,BCH,XEC,BNB,BGG,TRX&tsyms=USD") price = json.loads(price_request.content) # Grab Crypto News api_request = requests.get("https://min-api.cryptocompare.com/data/v2/news/?lang=EN") api = json.loads(api_request.content) paginator = Paginator(api, 10) page = request.GET.get('page') items = paginator.page(page) return render(request, 'home.html', {'items': items, 'price': price}) -
My django application is not working in customdomain
I recently finished my django project and deployed it successfully without any errors in heroku. It works fine with the appname.herokuapp.com domain. But when i tried to add my custom domain, i got a very different problem. Only my machine can access the page. Weird right! Yes. The page can be accessed only by me in my machine. But i get DNS_PROBE_FINISHED_NXDOMAIN error. Really weird! I guess this is not the problem with the code and i know i'm missing somewhere in the dns configuration. I bought my domain in big rock. So please guide me through this weird problem. The development site is arr-coaching.herokuapp.com The deployed site is www.arccphysics.in (Which you cannot access) :( And any device connected to my WIFI can open the site. Some serious thing! Please help me out !