Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Migrating a Python package in Django on Heroku?
I'm working on a Django project, and I installed a Python package using pip (specifically the django-gsheets package). This package has its own set of migrations contained in its own package files (/env/lib/python3.7/gsheets/migrations/), and when I run python manage.py migrate, Django finds them and applies them, even though they're not in my project directory. However, I run into problems with doing it remotely on the Heroku server. I've added the package to my requirements.txt and 'gsheets' (the app name) to INSTALLED_APPS in settings.py, but when I do heroku run python manage.py migrate, it can't find the migrations. I tried manually adding a 'gsheets' folder in the root directory of my project, with its own 'migrations' folder, copying over the migrations into it, committing, and pushing to Heroku, but Heroku still can't find the migrations. I've also tried heroku run python manage.py makemigrations, which does make the right migrations on the Heroku server, but Heroku can't find these when I tried to run the migration. It's starting to feel like I might have to just copy the entire gsheets project into my root project directory in order to actually use it on Heroku, but I'm wondering if there are any better … -
Retrieving the true size of a html document
I have a html document that I created using googles "site" service. I tried exporting and embedding this document into my django website by including it into one of my templates. However, the content of my website overlaps with the footer, since apparently the html engine doesn't recognize the actual size of the embedded document and starts placing elements before it has actually ended. Editing the document itself is impossible because it's just a large block of unstructured code. I can solve the problem by adding break tags at the end of the document and seeing how many I need to get the footer to the correct height again, but I would like to be able to reedit this site and don't want to keep calculating how many tags i need each time. The recognized size is always the same, however long the document itself actually becomes. The file itself is too large to paste into pastebin but contains too many elements to properly navigate. Is there a good way to still embed this document into a regular html document without requiring the use of additional code? -
"non_field_errors" upon loging in using Django Rest Framework and Knox
I looked through all the relevant threads I could find and nothing seems to work. When I try to login through the API, it shows the 'non_field_errors' (username and password are correct). Here's my views.py, serializers.py and settings.py: views.py: class LoginAPI(generics.GenericAPIView): serializer_class = LoginUserSerializer permissions_classes = () queryset = User.objects.all() def post(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) user = serializer.validated_data return Response({ "user": UserSerializer(user, context=self.get_serializer_context()).data, "token": AuthToken.objects.create(user)[1] }) def get(self, request, *args, **kwargs): user = User.objects.all() serializer = UserSerializer(user, many=True) return Response(serializer.data) serializers.py: class LoginUserSerializer(serializers.Serializer): username = serializers.CharField() password = serializers.CharField() def validate(self, data): user = authenticate(**data) if user and user.is_active: return user raise serializers.ValidationError("invalid details") settings.py: REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'knox.auth.TokenAuthentication' ), 'DEFAULT_PERMISSIONS_CLASSES': ( 'rest_framework.permissions.AllowAny', ) } -
"detail": "CSRF Failed: CSRF token missing or incorrect." Django Rest Framework
My Error: { "detail": "CSRF Failed: CSRF token missing or incorrect." } My Model: class Booking(models.Model): booking_id = models.AutoField(primary_key=True) booking_owner = models.TextField(max_length=20) booking_city = models.TextField(max_length=20) booking_place = models.TextField(max_length=20) booking_arrival = models.DateField() booking_departure = models.DateField() booking_vehicle = models.TextField(max_length=20) booking_amount = models.TextField(max_length=20) booking_payment_date = models.DateField(default=now) booking_status = models.TextField(max_length=10, default=None, blank=True, null=True) booking_payment_status = models.TextField(max_length=10, default=None, blank=True, null=True) booking_entrance_time = models.TimeField(default=None, blank=True, null=True) booking_exit_time = models.DateTimeField(default=None, blank=True, null=True) def __str__(self): return "%s - %s" % (self.booking_id, self.booking_city) My Serializer: class AddBookingSerializer(serializers.ModelSerializer): class Meta: model = Booking fields = '__all__' My View: class BookingAddAPI(APIView): @staticmethod def post(request): data = {} try: serializer = WitPark.serializers.AddBookingSerializer(data=request.data) if serializer.is_valid(): serializer.save() data['status'] = status.HTTP_201_CREATED data['message'] = "Data saved successfully" else: data['status'] = status.HTTP_204_NO_CONTENT data['message'] = "Invalid data" except Exception as e: data['status'] = status.HTTP_404_NOT_FOUND data['message'] = "Failed to save the data" data['error'] = e return Response(data=data) I have also other POST methods. This post method is working fine in localhost but not working in live server (pythonanywhere.com) All other methods are also working fine on live server except this one -
Django Pagination in ListView does not have page_obj?
I am a little confused here... I have assigned paginate_by within my class but it simply does not paginate. I have read many articles about query_set and others but nothing seems to solve my issue. Here is my original view: class Clients(ListView): paginate_by = 5 model = Client template_name = 'clients.html' def get_clients_view(self, request): """ Primary View """ last_name = request.GET.get('last_name', '') email = request.GET.get('email', '') if request.method == 'GET': object_list = Client.objects.filter(last_name__contains=last_name).filter(email__contains=email) register_form = ClientRegisterForm(request.POST) remove_form = ClientRemoveForm(request.POST) search_form = ClientSearchForm(request.GET) update_form = ClientUpdateForm(request.POST) client_context= { 'object_list' : object_list, 'register_form' : register_form, 'remove_form' : remove_form, 'search_form' : search_form, 'update_form' : update_form } return render(request, template_name='clients.html', context=client_context) As well as my nav: <nav class="step-links"> {% if is_paginated %} {% if page_obj.has_previous %} <a href="?page=1">&laquo; first</a> <a href="?page={{ page_obj.previous_page_number }}">previous</a> {% endif %} {% if page_obj.number %} <p class="current"> Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. </p> {% endif %} {% if page_obj.has_next %} <a href="?page={{ page_obj.next_page_number }}">next</a> <a href="?page={{ page_obj.paginator.num_pages }}">last &raquo;</a> {% endif %} {% else %} <p> Is not paginated.</p> {% endif %} </nav> -
Django: django.urls.exceptions.NoReverseMatch: Reverse for 'book' with arguments '('',)' not found
I am working on CS50 Django tutorial. I am not able to open one of the pages and it shows the following error. Reverse for 'book' with arguments '('',)' not found. 1 pattern(s) tried: ['flights/(?P<flight_id>[0-9]+)/book$'] Here is my urls.py urlpatterns = [ path('', views.index, name="index"), path('admin/', admin.site.urls), path('<int:flight_id>', views.flight, name="flight"), path('<int:flight_id>/book', views.book, name="book") ] Here is my views.py related code def book(request, flight_id): if request.method == "post": flight = Flight.objects.get(pk=flight_id) passenger = Passenger.objects.get(pk=int(request.POST["passenger"])) passenger.flights.add(flight) return HttpResponseRedirect(reverse("flight", args=(flight_id,))) I have used it in an html page <form action="{% url 'book' flight.id %}" method="post"></form> {% csrf_token %} I'd like to know what's the problem, I have checked some related problem but none of them are helpful -
Python Huey throws huey.exceptions.HueyException: xxxxxx not found in TaskRegistry
I'm trying to integrate Huey with Django where I'm almost done with the initial setting of app and everything with redis. Now when I'm running the actual .py file I'm getting an exception huey.exceptions.HueyException: xxxxxxx not found in TaskRegistry. I have followed all the steps mentioned on here but still no luck so far. Can someone please help and through some light on what I'm missing or if something is wrong. Thanks in advance. Below is my code and app settings: schedule_task.py settings.py Command which I'm using to run the schedule_task.py python manage.py shell < hueyTasks/schedule_task.py Redis running on my local python manage.py run_huey command to run the consumer -
Django API architecture
I have an API and I use DRF with class based views. My API got these models: """ Model for System """ import uuid from django.db import models from django.utils.translation import ugettext as _ from simple_history.models import HistoricalRecords from common_config import custom_model_fields as version_model from systems.models.manager.manager import SystemManager class System(models.Model): """ Define fields for system model. machine(1-1): machine/models/machine.py owner(N-N): user/models/user.py support(N-N): user/models/user.py dealer(1-N): user/models/company.py console(1-1): console/models/console.py vision(1-N): vision/models/vision.py """ class MarketChoice(models.TextChoices): """ Enum for market location """ AUSTRALIA = 'Australia', _('Australia') EUROPE = 'Europe', _('Europe') class ProductChoice(models.TextChoices): """ Enum for Product """ SPRAYER = 'Sprayer', _('Sprayer') OPTICAL_SORTER = 'Optical sorter', _('Optical sorter') uuid = models.UUIDField( default=uuid.uuid4, editable=False, unique=True) name = version_model.VersionCharField( verbose_name=_('Commercial name of the system'), max_length=30, default='1', null=False, blank=False, unique=True, version=1) code = models.CharField(verbose_name=_('code'), max_length=30, default='') description = models.TextField(verbose_name=_('Description'), blank=True) machine = models.OneToOneField('machine.Machine', on_delete=models.PROTECT) owner = models.ManyToManyField('users.User', related_name='own') support = models.ManyToManyField('users.User', related_name='support') dealer = models.ForeignKey('users.Company', on_delete=models.PROTECT) console = models.OneToOneField('console.Console', on_delete=models.PROTECT, related_name='console') market_location = models.CharField(max_length=25, choices=MarketChoice.choices, default=MarketChoice.EUROPE) is_telemetry_available = models.BooleanField(default=True, verbose_name=_('Is the telemetry activated for this system ?')) product = models.CharField(verbose_name=_('Product type'), max_length=25, choices=ProductChoice.choices, default=ProductChoice.SPRAYER) application = models.CharField(verbose_name=_('Application'), max_length=30, default='') history = HistoricalRecords() objects = SystemManager() class Meta: # pylint: disable=too-few-public-methods """ Meta class for System """ verbose_name = _('System') … -
How to customize Many-to-Many Inline in Admin Site
This is how I've defined my models: class Technology(models.Model): title = models.CharField(max_length=10) class Meta: verbose_name_plural = 'Technologies' def __str__(self): return self.title class Project(models.Model): title = models.CharField(max_length=100) description = HTMLField() technology = models.ManyToManyField(Technology, related_name='projects') image = models.ImageField(upload_to='projects/') def __str__(self): return self.title And this is how I've defined the models in admin.py: class TechnologyInline(admin.StackedInline): model = Project.technology.through @admin.register(Technology) class TechnologyAdmin(admin.ModelAdmin): pass @admin.register(Project) class ProjectAdmin(admin.ModelAdmin): inlines = [ TechnologyInline, ] exclude = [ 'technology', ] And this is the result: This is exactly what I need, but it's very ugly. Is it possible to customize the strings such as "Project-technology relationship: #1" and others? -
Issues on File Validation using python magic
I have made validators.py in Dimensions project directory for file validation (In Simple words, If It's a video model accept only mp4 ,If it's a image model accept jpg and png only). But I dont't get it It gives me Validation error 'Sorry, Cannot accept unacceptable file extension' when I add for Video, Image, File to check. What am I doing wrong? I couldn't figure out. import os import magic from django.core.exceptions import ValidationError def validate_is_video(file): valid_mime_types = ['application/.mov'] file_mime_type = magic.from_buffer(file.read(1024), mime=True) if file_mime_type not in valid_mime_types: raise ValidationError('Sorry,Cannot accept unsupported file type.') valid_file_extensions = ['.mov',] ext = os.path.splitext(file.name)[1] if ext.lower() not in valid_file_extensions: raise ValidationError('Sorry,Cannot accept unacceptable file extension.') def validate_is_image(file): valid_mime_types = ['application/.png','application/.jpg'] file_mime_type = magic.from_buffer(file.read(1024), mime=True) if file_mime_type not in valid_mime_types: raise ValidationError('Sorry,Cannot accept unsupported file type.') valid_file_extensions = ['.png','.jpg'] ext = os.path.splitext(file.name)[1] if ext.lower() not in valid_file_extensions: raise ValidationError('Sorry,Cannot accept unacceptable file extension.') def validate_is_audio(file): valid_mime_types = ['application/.mp3','application/.wav'] file_mime_type = magic.from_buffer(file.read(1024), mime=True) if file_mime_type not in valid_mime_types: raise ValidationError('Sorry,Cannot accept unsupported file type.') valid_file_extensions = ['.mp3','.wav'] ext = os.path.splitext(file.name)[1] if ext.lower() not in valid_file_extensions: raise ValidationError('Sorry,Cannot accept unacceptable file extension.') def validate_is_file(file): valid_mime_types = ['application/.zip','application/.rar'] file_mime_type = magic.from_buffer(file.read(1024), mime=True) if file_mime_type not in valid_mime_types: raise … -
Integrating a PHP tool within a Django (Python) application
I am running a Django website which aims at providing 360 degrees virtual tours of different locations on Earth. However, the tool that I am using for generating the 360 pages and administrating them, runs in PHP. I managed to make my Django site run on Apache using mod_wsgi but it still doesn't work. The .php pages appear, but they are static: I can't do anything with them except looking at them. Has anyone ever had to deal with this sort of issue? Thank you for your help! -
How to check Django's automatic form validation result before javascript submit
I'm working on an advanced search page of a Django (3.2) project. I'm using pure javascript and Django's formset_factory to create a dynamic form where the user can create a hierarchy of forms containing advanced search criteria (for and/or groups). It works great. However... Early on during development, before I wrote the javascript to pass the additional hierarchy information to views.py's form_valid method, Django (without me adding any specific code to do so) was performing nice form validation before submit and would present a nice tooltip that pointed to missing form fields, and the form (desirably) would not submit: When I implemented the javascript to save the hierarchy information, attached to a listener on the submit button, I noticed that the tooltip would appear for a fraction of a second and the invalid form would inappropriately submit. Here's the code that was introduced that inadvertently bypassed Django's automatic form validation: <script> document.addEventListener("DOMContentLoaded", function(){ appendInnerSearchQuery(document.querySelector('.hierarchical_search'), 0, rootGroup); var myform = document.getElementById("hierarchical_search_form"); document.getElementById("advanced_search_submit").addEventListener("click", function () { saveSearchQueryHierarchy(document.querySelector('.hierarchical_search')); myform.submit(); }); }); console.log("Ready with rootGroup: ", rootGroup); </script> In fact, subsequent efforts appear to submit even before the tooltip has a chance to show up, presumably due to the time it takes to validate, … -
How to define user models with multiple access level in django
How can a user be a member of multiple organizations and have different roles in each organization, depending on what level of access they need. -
Django pass to an url a list of parameters
In my dhango project i create a function callable via url: url(r'^pd/(?P<c_id>[\w\-]+)\/$', calc_q), So my function need to manage at least 4 input @csrf_exempt def calc_q(request, c_id): start_d = datetime.date(2021, 6, 28) end_d = datetime.date(2021, 6, 29) v_id = 17 q_time ="15min" ... How can i pass, for example a list or a dict from url to my function with my 4 variables inside? Is possible pass all variables directly in url? Whitch is the best method? So many thanks in advance -
python json convert Timestamp to string as key
In my django project i convert a pandas dataset into a dict (json) object and try to return as a value: ... # Iterate for index, row in df_15.iterrows(): d_ret[index.to_pydatetime().strftime("%m/%d/%Y-%H:%M:%S")] = {'first': row['first'], 'last': row['last']} return JsonResponse(d_ret) if i print to output my dict i get: {'06/28/2021-00:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-00:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-00:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-00:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-01:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-01:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-01:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-01:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-02:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-02:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-02:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-02:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-03:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-03:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-03:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-03:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-04:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-04:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-04:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-04:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-05:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-05:15:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-05:30:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-05:45:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-06:00:00': {'first': 0.0, 'last': 0.0}, '06/28/2021-06:15:00': {'first': 0.0, 'last': 0.0} that is correct, but if i call my link for see my json at http://127.0.0.1:8000/pd/21/ in my browser i get: SyntaxError: JSON.parse: unexpected character … -
Running Python on HTML(how to reference on drive)
I am new to HTML,and have abit of experience with python but wanted to create a simple UI to run some daily tasks for my team. The goal is to run a HTML website that is running python in the back-end from a drive. I do have a few questions as I am abit lost with this. We have a drive where we want to keep the html file and then run it by sharing the link, which works as intended, so when you click on the link it opens the drive and runs the html file. But if now i want to run python for example with Django, how do i reference the HTML file? because they arent in a directory. I dont know if this is possible or how to make them reference each other. I am using amazon.corp.drive.com I am sorry if this question might sound very dull, but I am extremely new to the web side of things. Either way thank you in advance! -
Many to many relation in django
I have 2 models model A and model B as below class ModelA(TimeStampedModel): field_a= models.TextField(default="") field_b= models.ManyToManyField("ModelB", related_name="modeA_modelB", blank=True) class ModelB(TimeStampedModel): field_c= models.TextField(default="") field_d= models.ManyToManyField("ModelA", related_name="modeB_modelA", blank=True) what I'm trying to achieve whenever a model A is assigned modelB instances it should reflect i model B as well for example: a particular terms and conditions have several policy that will be model A, Next in model B I have to have field _d having the list of terms and condition which have that policy Any help or guidance will be a great help -
How do I join two tables in Django ORM?
I am a beginner in Django and I know this question has alredy been asked, but I've tried every possible solution from previous answers and it still doesn't work. I can't figure out what I'm doing wrong. The thing is my view currently returns all the fields of the Grade table, but I need it to return all of those fields plus the "name" field which is in the Student table, by joining the two tables. I read that Django should do it automatically as long as I use ForeignKey, which I did, but it actually doesn't work. What am I doing wrong? I'm sorry if it's a noob question and if the solution is really obvious, I'm still trying to learn how Django works. app/models.py class Student(models.Model): id = models.IntegerField(primary_key=True, default=0) name = models.CharField(max_length=50) class Grade(models.Model): subject = models.CharField(max_length=50) grade = models.IntegerField(default=0) student = models.ForeignKey(Student, on_delete=models.CASCADE) app/serializers.py class StudentSerializer(serializers.ModelSerializer): class Meta: model = Student fields = ('id', 'name') class GradeSerializer(serializers.ModelSerializer): class Meta: model = Grade fields = ('subject', 'grade', 'student') app/views.py class StudentView(viewsets.ModelViewSet): serializer_class = StudentSerializer queryset = Student.objects.all() class GradeView(viewsets.ModelViewSet): serializer_class = GradeSerializer queryset = Grade.objects.all().select_related("student") filterset_fields = ('student') -
How to create and zip multiple files together and download them using Django and Python 3
In my django app I create two text files and I want them to download automatically when a form is submitted. I believe that in order to do this I need to zip the files together, and then download the zip file. I am using the zipfile module to do this. Here is my code in the views.py file. with open('file1.txt', 'w') as file_1: numbers = ['1', '2', '3'] for num in numbers: file_1.write(num) file_2.write('\n') with open('file2.txt', 'w') as file_2: letters = ['A', 'B', 'C'] for letter in letters: file_1.write(letter) file_2.write('\n') comp_file = ZipFile('My_Files.zip', 'w') comp_file.write('file1.txt', compress_type=zipfile.ZIP_DEFLATED) comp_file.write('file2.txt', compress_type=zipfile.ZIP_DEFLATED) comp_file.close() return HttpResponse(content_type='application/zip', headers={'Content-Disposition': 'attachment; filename="My_Files.zip"'}) My expected output would be a zip file that could be extracted to contain the file1.txt and file2.txt. However, the output I actually get is a zip file that can't be extracted because it is empty. Also, this method actually creates all of the files in my working directory, which I don't really want to do. Does anyone know how I can do this without actually saving the files in my own directory? My current plan is to just delete the files after they are downloaded by the user. Thanks! -
How to return a file in django
I have a django app through which I would like to serve an index.html file. This html file isn't in default django template, rather I have the index.html in a react build folder. I don't want to render the template, rather I want to send it. The render method isn't working, and I don't know if there is any django method that can serve the file. What I want to accomplish can be done using res.sendFile() in expressjs. def home(request): return FileResponse(request, 'home/home.html') The FileResponse method isn't working here. -
Did you forget to register or load this tag? Using Django
I dont get it, if i remove the last im not getting this error, here's my HTML, i know im not closing a "if" tag correctly or something, the only solution for me is to remove the last last {% if request.get_full_path != "/addAssest/" and request.user.is_authenticated %} <div class="sidebar" style="height: 35%"> <div class="sidebar-wrapper"> <div class="logo"> <a target="_blank" href="https://www.creative-tim.com/product/black-dashboard-django" class="simple-text logo-mini" > CC </a> <a target="_blank" href="https://www.creative-tim.com/product/black-dashboard-django" class="simple-text logo-normal" > Crypto Castle </a> </div> <ul class="nav"> <li class="{% if 'index' in segment %} active {% endif %}"> <a href="/"> <i class="tim-icons icon-chart-pie-36"></i> <p>Dashboard</p> </a> </li> <li class="{% if 'page-user' in segment %} active {% endif %}"> <a href="{% url 'profilePage' %}"> <i class="tim-icons icon-single-02"></i> <p>User Profile</p> </a> </li> <li class="{% if 'logout' in segment %} active {% endif %}"> <a href="{% url 'logout' %}"> <i class="tim-icons icon-user-run"></i> <p>Logout</p> </a> </li> </ul> </div> </div> {% endif %} -
How to access array of python in JavaScript from Views in Django?
I am writing this array in Views in Django: address=["Main Address"] and passing in dic. and accessing in Java Script in HTML page: address={{context.lat_long.address}} addMarker(address,{lat: property_lat, lng: property_long}, "red"); But it is not working at all -
Django imports from . import views
from . import views python Django framework command that i don't understand what is . in there . is it like * means all ? or have another meaning ? -
HTML button not executing Javascript function [closed]
I am a building a website and I have encountered a small issue with Javascript. The following code is in my website. <script> function displayForm(){ var element = document.getElementById("story-form"); if (element.style.display === none) { element.style.display = block; } else { element.style.display = none; } } </script> <button id="form-button" class="link-button" onclick=displayForm()>Edit</button> <div id="story-form" style="display:none;"> <form method="POST"> {% csrf_token %} {{ story_form.content }} {{ story_form.errors }} <button class="normal-button" type="submit">Submit</button> </form> </div> However, when I click the button with the id 'form-button', the displayForm() function is not being executed. Is there a problem with the code? Thanks in advance. -
Braintree - Why is only the default card being used for starting a subscription?
I am trying to understand how to give an option for the user to choose a non-default payment method / card for their subscription. Please see image below: I have two cards. The Visa is the default payment card. But if the user chooses the MasterCard (not default), only the default payment is used to start a subscription. I am using a payment nonce to start a subscription. The customer is saved in a different view and their payment methods are validated. result = braintree_gateway.subscription.create({ 'payment_method_nonce': payment_nonce, 'plan_id': tier_chosen, 'merchant_account_id': settings.BRAINTREE_MERCHANT_ACCOUNT_ID }) Thank you for the help!