Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
How can i upload multiple files with base64 in Django Rest Framework?
I started learning DRF and I'm trying to clone Twitter on VueJs to improve myself. On the VueJs side, I use FileReader for file upload and send the base64 code of the uploaded images to DRF when the form is submitted. On the DRF side, I convert these base64 codes to ContentFile, but at the end I get the errors I mentioned below. {'files': [{'non_field_errors': [ErrorDetail(string='Invalid data. Expected a dictionary, but got ContentFile.', code='invalid')]}, {'non_field_errors': [ErrorDetail(string='Invalid data. Expected a dictionary, but got ContentFile.', code='invalid')]}]} Internal Server Error: /api/add-tweet/ Traceback (most recent call last): File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\django\core\handlers\base.py", line 204, in _get_response response = response.render() File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\django\template\response.py", line 105, in render self.content = self.rendered_content File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\rest_framework\response.py", line 70, in rendered_content ret = renderer.render(self.data, accepted_media_type, context) File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\rest_framework\renderers.py", line 100, in render ret = json.dumps( File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\rest_framework\utils\json.py", line 25, in dumps return json.dumps(*args, **kwargs) File "C:\Users\adilc\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 234, in dumps return cls( File "C:\Users\adilc\AppData\Local\Programs\Python\Python38\lib\json\encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "C:\Users\adilc\AppData\Local\Programs\Python\Python38\lib\json\encoder.py", line 257, in iterencode return _iterencode(o, 0) File "C:\Users\adilc\Desktop\twitter-vue-django\twitter\lib\site-packages\rest_framework\utils\encoders.py", line 50, in default return obj.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte How can I … -
Deploying self-hosted Django dynamic website
So here's the thing: I have a Django app and I want to self host it (LAMP). Superficially, the dynamic website receives images, a OCR process is made and the results are returned to the client. The app could be accessed on average by 5 people at the time (to start with). The memory use could amount to 500 MB per client but it is erased afterwards (I'm not storing data whatsoever after the client has received the website output). So here is one of my doubts: I have some Compaq towers without using (processor: AMD Athlon X2 Dual-Core 7550. Memory: 2GB. Hard-Drive: 250 GB). Are there any restrictions towards installing Apache web server and deploying a dynamic website in desktop machines (besides the speed given by processors such as the Intel Xeon Platinum)? For example, could this tower receive requests from 5 different clients at the same time or this can't be done by a desktop processor? Or should I expect the tower overheating and the dynamic website being really slow? ---- I'm thinking about recycling and saving some money at the cost of a slower website (not extremely low I hope). Any recommendations about what Linux distribution to … -
Django 3 - null value in column "x" of relation
I'm struggling with the django rest project. I want to have some data in my database visible only for current logged in user. I did it by using my serializer and filtering - it's working. The next step is to add data to the database. My purpose is to add data only by admin user, so I have added my custom permission class: permission_classes = (IsAdminOrReadOnly,). Admin also has to have the possibility to specify used owned the data. It's working when I'm using django admin panel. And finally I want to post the data e.g: { "unix": 0, "user": "example@email.com" } Based on the email - I want to specify the user and assign posted data to the user. I have some idea how to resolve this but right now I'm struggling with the error: django.db.utils.IntegrityError: null value in column "user_id" of relation "rest_userstats" violates not-null constraint But did not find the solution yet I did prepare some model class: models.py class UserStats(models.Model): user = models.ForeignKey(get_user_model(), related_name='statistics', on_delete=models.CASCADE, null=True) user_email = models.EmailField() unix = models.IntegerField() serializers.py class UserStatsSerializer(serializers.ModelSerializer): class Meta: model = UserStats fields = ( 'unix', 'user_email', ) views.py class UserStatsViewSet(viewsets.ModelViewSet): serializer_class = UserStatsSerializer queryset = UserStats.objects.all() permission_classes … -
Django Make user to superuser on the frontend
I want to allow an admin/superuser to set already created users to be also a superuser. How would I go about this? I am new to Django. There is a separate user editing page and I want to add a button that would by clicking it change the is_superuser to True. -
Django object on creation isn't stored in the database and the ID is returned as null
I creating a basic notes application where user can perform CRUD operation. Following are my models, views and URLs. from django.db import models from accounts.models import User from django.utils import timezone class Notes(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=200) body = models.TextField() created_on = models.DateTimeField(auto_now_add=True, editable=False) last_updated = models.DateTimeField(auto_now=True) def save(self, *args, **kwargs): if not self.id: self.created_on = timezone.now() self.last_updated = timezone.now() def __str__(self): return self.title Views.py from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework import viewsets, status from rest_framework.response import Response from . import serializers, models class NotesViewSet(viewsets.ModelViewSet): queryset = models.Notes.objects.all() serializer_class = serializers.NotesSerializer authentication_classes = (TokenAuthentication,) permission_classes = (IsAuthenticated,) def list(self, request): notes = models.Notes.objects.all().filter(user=request.user) serializer = serializers.NotesSerializer(notes, many=True) return Response(serializer.data) def create(self, request): serializer = serializers.NotesSerializer(data=request.data) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data, status=status.HTTP_201_CREATED) def retrieve(self, request, pk=None): note = models.Notes.objects.filter(id=pk) serializer = serializers.NotesSerializer(instance=note) return Response(serializer.data) def update(self, request, pk=None): note = models.Notes.objects.get(id=pk) serializer = serializers.NotesSerializer( instance=note, data=request.data) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data, status=status.HTTP_202_ACCEPTED) def destroy(self, request, pk=None): note = models.Notes.objects.get(id=pk) note.delete() return Response({"message": "Note deleted"}, status=status.HTTP_202_ACCEPTED) urls.py from django.urls import path from .views import NotesViewSet app_name = 'notes' urlpatterns = [ path('get', NotesViewSet.as_view({ 'get': 'list', }), name='get'), path('create', NotesViewSet.as_view({ 'post': 'create', }), name='create'), path('get/<str:pk>', NotesViewSet.as_view({ 'get': 'retrieve', … -
Error: 'The archive is either in unknown format or damaged' - Django
I got 'The archive is either in unknown format or damaged' error when i download a file and open it. Image: I download the zip from a response provide from browser. Any idea how can i solve this? -
Django Webpack Loader: "Assets" KeyError?
I recently upgraded a Django app to current Django and Python versions, and updated my pip packages as well. Now I'm getting this error: Django Version: 3.2.3 Exception Type: KeyError Exception Value: 'assets' Exception Location: /my/env1/lib/python3.8/site-packages/webpack_loader/loader.py, line 90, in get_bundle Looking at the Exception Location, I see: ...and looking at assets, confirms it has no key named assets: How do I fix this? -
Can a Django model's choices be mapped to classes that are not models?
I've got a bunch of MealIngredient models which have a foreign key of UnitChoice like so: class MealIngredient(models.Model): ingredient = models.ForeignKey(Ingredient, on_delete=models.CASCADE) meal = models.ForeignKey(Meal, on_delete=models.CASCADE) unit = models.ForeignKey(IngredientUnit, on_delete=models.CASCADE, null=True) quantity = models.FloatField(validators=[MinValueValidator(0.0)], default=1) class IngredientUnit(models.Model): UNIT_CHOICES = [ ('Imperial', ( (Volume.pinch, 'pinch'), (Volume.teaspoon, 'teaspoon'), (Volume.tablespoon, 'tablespoon'), (Volume.fluidOunce, 'fluid ounce'), (Volume.cup, 'cup'), (Volume.pint, 'pint'), (Volume.quart, 'quart'), (Volume.gallon, 'gallon'), (Mass.ounce, 'ounce'), (Mass.pound, 'pound'), ) ), ('Metric', ( (Volume.milliliter, 'milliliter'), (Volume.centiliter, 'centiliter'), (Volume.deciliter, 'deciliter'), (Volume.liter, 'liter'), (Volume.decaliter, 'decaliter'), (Volume.hectoliter, 'hectoliter'), (Volume.kiloliter, 'kiloliter'), (Mass.gram, 'gram'), (Mass.kilogram, 'kilogram'), ) ), ('individual', 'individual') ] unit_choice = models.CharField(choices=UNIT_CHOICES, default='individual', max_length=20) I've imported 'sugarcube' which lets you define units, conversions, etc. My issue is that the classes imported from sugarcube (Volume, Mass, etc.) are not models, and as such I'm getting: ValueError: Cannot serialize: pinch There are some values Django cannot serialize into migration files. Is there a way to make this work? Can I make sugarcube's classes serializable? -
Know which field is raising exception in django save
I am calling a save() method of a django model, and I get the following error: Validation Error(["El valor '' debe ser un número decimal"]) ("The value '' must be a decimal number"), but it doesn't say which field is the wrong one. How can I know which field is raising the exception? -
How to get the difference value from table - django?
I am new to Django and came up with a problem. I have a table like TABLE Id Title Type Value 1 A 1 10 2 B 1 20 3 C 2 5 Now from the above table how can I get a value where I sum the value of a similar type and subtract the value from the different type (A+B-C =25). Also, I have a value of two types only. How can I write the query to get the result. -
python Django how show category data on CART Page?
Hi i am new i want to show after customer select a category product then related category other items show bellow on CART page. following are my model. Model.py class Item(models.Model): title = models.CharField(max_length=100) price = models.FloatField() discount_price = models.FloatField(blank=True, null=True) category = models.CharField(choices=CATEGORY_CHOICES, max_length=2) label = models.CharField(choices=LABEL_CHOICES, max_length=1) slug = models.SlugField() description = models.TextField() image = models.ImageField() Cart Page Screen Shoot -
Django custom groups and permission
djangorestframework==3.12.4 django==3.2.2 My requirements - need to add few more fields to Group Model and Permission Model like - created_by, is_active. need to have an API to create Group, only for authorized users. Also, all users cannot see all permission. Idea is- Say there is one user type called Author of organization XYZ then it can create groups and assign certain groups and permission to the users of its own organization. What I tried - Creating custom group model, custom permission model, but it has reference to pemrissionMixin this way I need to rewrite the whole logic of mixin too. Any Idea, how can I effectively achieve the above requirements? -
I've managed to create a file insert input on django but I would like to put the input action on a div instead
right now i managed to insert files using the input ("escolher arquivo") thing but I would like to put the action on the div like in the picture. Is there a way to do that on django? -
How to Update Domain (DomainMixin)in client in django-tenant programmatically
How to Update Domain (DomainMixin)in client in django-tenant programmatically class Client(TenantMixin): type = models.CharField(max_length=100, choices=get_tenant_type_choices()) name = models.CharField(max_length=100) description = models.TextField(max_length=200) created_on = models.DateField(auto_now_add=True) auto_create_schema = True def __str__(self): return self.schema_name class Domain(DomainMixin): pass After creation of tenant How To update Domain again.No existing command there? -
Filter Products by Distribution Center Quantity Channel advisor REST API
I am working on a django project in which I am fetching products from Channel Advisor platform using the file export feature. I am using the filter '$filter=ProfileID eq and TotalQuantity gt 0'. https://developer.channeladvisor.com/working-with-products/product-exports I would like to query the product based on the value present in 'Qty Avail Warehouse' field present in catalogs listing page instead of 'TotalQuantity'. Or filter by distribution center quantity eg: those products having stock greater than 0 in 'Phoenix' distribution center. Thank you. -
Django Rest Framework - Multiple data commit to db
I am building a shift management system, wherein i want to mark the user's availability during the shifts, the user can update his availability status later. To achieve this i am trying to split the shifts in case of overlapping availability. I am unable to achieve multiple data commit to db. I need to understand how to insert multiple data's. basically i need to know how to insert the old fetched details* to this details field and other fields to the Shift_Availability_Model details = ShiftDetailModelSerializer(many=True, read_only=True) views.py class SplitShiftAvailabilityViewSet(viewsets.ModelViewSet): permission_classes = (IsAuthenticated,) queryset = Shift_Availability.objects.all() serializer_class = MultipleShiftModelSerializer filter_backends = (SearchFilter, OrderingFilter, DjangoFilterBackend) filter_fields = [ "group_ref" ]``` serializer.py class MultipleShiftModelSerializer(serializers.ModelSerializer): """Shift model serializer""" details = ShiftDetailModelSerializer(many=True, read_only=True) force = serializers.BooleanField(required=False) # employee = EmployeeModelSerializer() def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.context["employee"] = None self.context['travel_method'] = None def internal_validate(self, data, field): self.context[field] = data if data == None: return data elif data.id: return data.id return data def validate_employee(self, data): return self.internal_validate(data, "employee") def validate_travel_method(self, data): return self.internal_validate(data, "travel_method") class Meta: """Meta class.""" model = Shift_Availability fields = '__all__' @transaction.atomic def create(self, data): force = data.pop('force') old_shift_data = OverlapingShiftReturn().return_overlapping( data['employee'], data['start_date'], data['end_date'], force ) # print('old_shift_data = ', old_shift_data) ShiftValidator().overlappingValidation( data['employee'], … -
Django Selenium test works in local Docker container but not on Jenkins server
When I run the Docker image locally in interactive mode and then do the test manually it works. But when I push to GitHub, Jenkins pulls and runs the tests and then times out when trying to initiate the Firefox browser. I tried with different Docker base images. I tried with giving executable_path to local file, and also without(while adding system path). I am new to Docker and Jenkins and I'm not sure what I'm doing wrong. Thanks in advance for any help. dockerfile: FROM ubuntu:bionic COPY BS_PM2021_TEAM_27/requirements.txt requirements.txt RUN apt-get update RUN su - RUN apt-get install sudo -y RUN sudo apt-get install -y xvfb RUN sudo apt-get install -y firefox RUN sudo apt-get install -y wget RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz RUN tar -xvzf geckodriver* RUN chmod +x geckodriver RUN sudo mv geckodriver /usr/local/bin/ RUN export GECKODRIVER=$PATH:/user/local/bin/geckodriver RUN sudo apt-get install -y python3.8 RUN sudo apt-get install -y python3-pip RUN pip3 install -r requirements.txt RUN Xvfb & RUN export DISPLAY=localhost:0.0 WORKDIR . COPY . . requirements.txt: asgiref==3.3.4 Django==3.2.3 EasyProcess==0.3 filter-profanity==1.0.9 pytz==2021.1 PyVirtualDisplay==2.2 selenium==3.141.0 sqlparse==0.4.1 urllib3==1.26.5 Jenkinsfile: pipeline { environment { OUTPUT1 = "foo" OUTPUT2 = 'bar' } agent { dockerfile true } triggers { githubPush() } stages { stage('Build') { … -
How to edit fields without using forms in django
Sorry if my codes are inefficient or if the question is dumb but I have a product named car and I used this code to add a car into the database. I didn't use forms because of the checkboxes i used. views.py for adding a car def add_car(request): if request.method == 'POST' and request.FILES: user_id = request.POST['user_id'] brand = request.POST['brand'] status_of_car = request.POST['status_of_car'] city = request.POST['city'] ilce = request.POST['ilce'] e_mail = request.POST['e_mail'] phone_number = request.POST['phone_number'] car_title = request.POST['car_title'] description = request.POST['description'] price = request.POST['price'] serial = request.POST['serial'] color = request.POST['color'] model = request.POST['model'] year = request.POST['year'] condition = request.POST['condition'] body_style = request.POST['body_style'] engine = request.POST['engine'] transmission = request.POST['transmission'] interior = request.POST['interior'] kilometers = request.POST['kilometers'] passengers = request.POST['passengers'] power_of_engine = request.POST['power_of_engine'] fuel_type = request.POST['fuel_type'] no_of_owners = request.POST['no_of_owners'] car_photo = request.FILES.get('car_photo') car_photo_1 = request.FILES.get('car_photo_1') car_photo_2 = request.FILES.get('car_photo_2') car_photo_3 = request.FILES.get('car_photo_3') car_photo_4 = request.FILES.get('car_photo_4') car_photo_6 = request.FILES.get('car_photo_6') car_photo_5 = request.FILES.get('car_photo_5') car_photo_7 = request.FILES.get('car_photo_7') car_photo_8 = request.FILES.get('car_photo_8') car_photo_9 = request.FILES.get('car_photo_9') car_photo_10 = request.FILES.get('car_photo_10') car_photo_11 = request.FILES.get('car_photo_11') car_photo_12 = request.FILES.get('car_photo_12') car_photo_13 = request.FILES.get('car_photo_13') car_photo_14 = request.FILES.get('car_photo_14') feature_1 = request.POST.get('feature_1') feature_2 = request.POST.get('feature_2') feature_3 = request.POST.get('feature_3') feature_4 = request.POST.get('feature_4') feature_5 = request.POST.get('feature_5') feature_6 = request.POST.get('feature_6') feature_7 = request.POST.get('feature_7') feature_8 = request.POST.get('feature_8') feature_9 = request.POST.get('feature_9') feature_10 = … -
django "static" tag doesn't work with svg
I am using an SVG with a href of /static/portfolios/trillio/img/sprite.svg#icon-chat that works just fine but when I use: {% static 'portfolios/trillio/img/sprite.svg#icon-chat' %} the SVG doesnt' show, but the browser console doesn't show any error, the output for the static is this: /static/portfolios/trillio/img/sprite.svg%23icon-chat is it the %23 that's making a difference and if so how do I fix that? -
column clients_client.position does not exist... then - no migrations to apply
I've added a field in my clients model. Here's the model: class Client(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=20) mobile_number = models.CharField(max_length=12) email = models.EmailField(null=True, blank=True) position = models.CharField(max_length=30) organization = models.ForeignKey(UserProfile, null=True, blank=True, on_delete=models.CASCADE) agent = models.ForeignKey("Agent", related_name="clients", null=True, blank=True, on_delete=models.SET_NULL) category = models.ForeignKey("Category", related_name="clients", null=True, blank=True, default=6, on_delete=models.SET_NULL) company_name = models.CharField(max_length=50 , default=None) street_address = models.CharField(max_length=50 , default=None) baranggay = models.CharField(max_length=50 , default=None) city = models.CharField(max_length=50 , default=None) region = models.CharField(max_length=50 , default=None) date_added = models.DateTimeField(auto_now_add=True) phoned = models.BooleanField(default=False) special_files = models.FileField(blank=True , null=True) def __str__(self): return self.company_name Before I've added the position field the program runs smoothly. Now I've got "ProgrammingError: column clients_client.position does not exist" At Heroku Bash, when I run python manage.py makemigrations, it detects the changes, but when I migrate it says, no migrations to apply. Please help. -
Why User model has type string?
I have a view that returns data corresponded to the user, but when I try to find the User I get this error: Type str has no object method File views.py from .models import Question, User @api_view(['POST']) @renderer_classes((TemplateHTMLRenderer, JSONRenderer)) def answers_view(request, *args, **kwargs): userstring = request.data["name"] try: user0 = User.objects.get(username=userstring) except ObjectDoesNotExist: user0 = "NotFound" print("USER: ", user0, flush = True) File models.py from django.db import models # Create your models here. import random from django.conf import settings from django.db import models from django.db.models import Q User = settings.AUTH_USER_MODEL -
Django - Images aren't created under media folder once form with a ImageField has been submitted
Does anyone may know what am I doing wrong? Is there any additional config which am I missing? I have also created a media folder under the project root directory. urls.py urlpatterns = [ path('', views.HomeView().get, name='home'), path('admin/', admin.site.urls), path('add_your_bet/', views.AddBetsView.as_view(), name='add_your_bet'), path('add_your_bet/edit/<int:pk>', views.UpdateBetView.as_view(), name='update_your_bet'), path('create_league/', views.CreateLeagueView.as_view(), name='create_league'), path('create_user/', views.CreateUserView.as_view(), name='create_user'), path('members/', include('django.contrib.auth.urls'), name='register'), path('members/', include('members.urls'), name='login'), path('score_predictions/<int:pk>', views.predictions, name='predictions'), path('stats/', views.index, name='stats'), path('terms/', views.TermsView.as_view(), name='terms') ] urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)``` models.py class LeagueUser(models.Model): user_name = models.ForeignKey(User, on_delete=models.CASCADE) league_name = models.ForeignKey(League, to_field='league_name', on_delete=models.CASCADE) first_name = models.CharField('First Name', max_length=20) last_name = models.CharField('Last Name', max_length=20) nick_name = models.CharField('Nick Name', max_length=20) email = models.EmailField('Email') image = models.ImageField(null=True, blank=True, upload_to='media') updated = models.DateTimeField(auto_now=True) created = models.DateTimeField(auto_now_add=True) settings.py STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),) -
Multiple user models in Django inherited from AbstractBaseUser
I have a "legacy" database with different tables for different user types (admins and customers). They have nothing in common. I need to implement both models in the Django project, users need to log in to the client pages, admins to the admin pages (not django admin). How to solve this deal? Basically, I have an idea to run two application instances with different config values AUTH_USER_MODEL but it looks not the best idea. Thanks in advance. -
How do I show navbar items based on a model field in Django?
I have a Blog model that looks like this: class Blog(models.Model): title = models.CharField(max_length=200) content = models.TextField() slug = models.SlugField(max_length=200, unique=True) author = models.ForeignKey(User, on_delete=models.CASCADE, related_name='blogs') parent = models.CharField(max_length=50, choices=PARENT_TUTORIALS) def get_absolute_url(self): return reverse("blog_list", args=[str(self.parent), str(self.slug)]) I can succesfully display all the blogs on a table of contents via my table.html template: {% for blog in blog_list %} <li><a href="{{ blog.get_absolute_url }}">{{blog.title}}</a></li> {% endfor %} However, I want to show only those blogs that have the same Blog.parent value as the current blog page. For example, the page example.com/biology/page1, has biology as a parent. When the user is on that page, the table of contents should show only the pages that have biology as a parent. -
SSL Error accessing azure datastore for Azure Auto ML
I am implementing Azure AutoML dashboard in a docker container. When I access container without Docker it works. But in docker it gives SSL Error. def upload_dataset_to_blob(ws): datastore = ws.get_default_datastore() datastore.upload_files(files=[ '/usr/src/mediafiles/train.csv'], target_path='beeeerrr-dataset/tabular/', overwrite=True, show_progress=True) datastore.upload_files(files=[ '/usr/src/mediafiles/valid.csv'], target_path='beeeerrr-dataset/tabular/', overwrite=True, show_progress=True) datastore.upload_files(files=[ '/usr/src/mediafiles/test.csv'], target_path='beeeerrr-dataset/tabular/', overwrite=True, show_progress=True) train_dataset = Dataset.Tabular.from_delimited_files( validate=False, path=[(datastore, 'beeree-dataset/tabular/train.csv')]) valid_dataset = Dataset.Tabular.from_delimited_files( validate=False, path=[(datastore, 'beeree-dataset/tabular/valid.csv')]) test_dataset = Dataset.Tabular.from_delimited_files( path=[(datastore, 'beeree-dataset/tabular/test.csv')]) return train_dataset, valid_dataset, test_dataset This is the error I am getting Uploading an estimated of 1 files app_1 | Uploading /usr/src/mediafiles/train.csv app_1 | Uploaded /usr/src/mediafiles/train.csv, 1 files out of an estimated total of 1 app_1 | Uploaded 1 files app_1 | Uploading an estimated of 1 files app_1 | Uploading /usr/src/mediafiles/valid.csv app_1 | Uploaded /usr/src/mediafiles/valid.csv, 1 files out of an estimated total of 1 app_1 | Uploaded 1 files app_1 | Uploading an estimated of 1 files app_1 | Uploading /usr/src/mediafiles/test.csv app_1 | Uploaded /usr/src/mediafiles/test.csv, 1 files out of an estimated total of 1 app_1 | Uploaded 1 files app_1 | <bound method DataReference._get_normalized_path of $AZUREML_DATAREFERENCE_blob_test_data> app_1 | Internal Server Error: /azureml/train/ app_1 | Traceback (most recent call last): app_1 | File "/usr/local/lib/python3.8/site-packages/azureml/data/dataset_error_handling.py", line 65, in _validate_has_data app_1 | dataflow.verify_has_data() app_1 | File "/usr/local/lib/python3.8/site-packages/azureml/dataprep/api/_loggerfactory.py", line 206, in wrapper …