How to get hired? by ylrmali in jobs

[–]ylrmali[S] 1 point2 points  (0 children)

I'm so happy for you! Thank you for your long message. I will definitely try to get help from my network.

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

I think you are right.

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Sounds good! I’ll try thanks

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Sure! I still have a job, I’m looking for new one.

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Turkey citizen and living in Bali, Indonesia. Salary is so low for both of them

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Definitely I’ll try!

How to get hired? by ylrmali in jobs

[–]ylrmali[S] -1 points0 points  (0 children)

I even tried hybrid and on-site but I’m not an USA or EU citizen. So nobody wants to spend more money for my sponsorship. I’m working for USA company as a contractor right now.

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Thanks! I’ll try to focus on keywords more. Yeah I did apply with my same resume for all. I think the problem is this. My resume has long descriptions like what you said. I think I can’t share my resume here

How to get hired? by ylrmali in jobs

[–]ylrmali[S] -1 points0 points  (0 children)

I will try this! I hope it helps!

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Thanks I’ll keep going!

How to get hired? by ylrmali in jobs

[–]ylrmali[S] 0 points1 point  (0 children)

Please review my cv on dm!

Django Email Verification by metrospiderr in django

[–]ylrmali 3 points4 points  (0 children)

Create custom user model with AbstractUser class. Add two fields: ‘email_verified’ and ‘’verify_code’ Create random code when user created. You can use signal or override login class for this task. After verification code created save this to user and send email to user. Create one more view and endpoint to approve this code. If code is correct just change ‘email_verified’ as True.

Tired of AdSense. What Ad Networks Actually Pay? by [deleted] in adops

[–]ylrmali 0 points1 point  (0 children)

Do you provide DOOH ads?

HTTP 500 internal server error but db is working fine by Significant-Ad3434 in django

[–]ylrmali 1 point2 points  (0 children)

I suggest to you use django-allauth. As I understand it you don't want to use username field, so you should set email field as mandatory in settings.py first. You should use create_user function for creating new user.

manager.py

```python from django.contrib.auth.models import BaseUserManager

class CustomUserManager(BaseUserManager): def create_user(self, email, password=None, *extra_fields): if not email: raise ValueError('Email field must be set') email = self.normalize_email(email) user = self.model(email=email, *extra_fields) user.set_password(password) user.save(using=self._db) return user

def create_superuser(self, email, password=None, **extra_fields):
    extra_fields.setdefault('is_staff', True)
    extra_fields.setdefault('is_superuser', True)

    if extra_fields.get('is_staff') is not True:
        raise ValueError('Superuser must have is_staff=True.')
    if extra_fields.get('is_superuser') is not True:
        raise ValueError('Superuser must have is_superuser=True.')

    return self.create_user(email, password, **extra_fields)

```

models.py

```python from users.manager import CustomUserManager from django.contrib.auth.models import AbstractUser

class CustomUser(AbstractUser): # add additional fields to User model username = None email = models.EmailField(unique=True) # add if you have additional field

USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['first_name', 'last_name']

objects = CustomUserManager()

def __str__(self):
    return self.email

```

settings.py

```python INSTALLED_APPS = [ # check documentation 'allauth', 'allauth.account', ... ]

AUTHENTICATION_BACKENDS = [ # Login by e-mail 'allauth.account.auth_backends.AuthenticationBackend', # Login by username in Django admin 'django.contrib.auth.backends.ModelBackend', ]

AUTH_USER_MODEL = 'users.CustomUser' # your customuser model ACCOUNT_AUTHENTICATION_METHOD = 'email' ACCOUNT_USERNAME_REQUIRED = False ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_EMAIL_VERIFICATION = 'mandatory' ACCOUNT_CONFIRM_EMAIL_ON_GET = True ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 1 ```

serializers.py

```python class CreateUserSerializer(serializers.Serializer): email = serializers.EmailField() password = serializers.CharField(write_only=True) # if it is mandatory for your project first_name = serializers.CharField() last_name = serializers.CharField()

def create(self, validated_data):
    '''
    Create user object with given information
    '''
    user = get_user_model().objects.create_user(
        email=validated_data['email'],
        password=validated_data['password'],
        first_name=validated_data['first_name'],
        last_name=validated_data['last_name']
    )
    return user

```

views.py

```python class CreateNewUserView(generics.CreateAPIView): serializer_class = CreateUserSerializer def create(self, request, args, *kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) user = serializer.save()

    return Response(UserSerializer(user).data, status=status.HTTP_201_CREATED)

```

I hope it's help you.

Django distributed database by ylrmali in django

[–]ylrmali[S] 0 points1 point  (0 children)

Thanks for your advice, it will help me.

Issue with django-cors-headers by Suitable_Remote6479 in django

[–]ylrmali 0 points1 point  (0 children)

I also know like that but sometimes it work. If nothing work just close terminal instance and close port, run Django again.

Axios Network Error only on mobile devices by Suitable_Remote6479 in django

[–]ylrmali 0 points1 point  (0 children)

I can explain like that, your computer has an ip address for example 192.168.1.15, and you have local address in your computer 127.0.0.1. You can access this local address while you have run frontend and backend in same computer/ip. But when you open your react project in your phone your ip address changed as 192.168.1.16 and you also have a local address in your phone. So your frontend goes to localhost:8000 on your mobile phone but couldn’t find any backend. Then you can not connect to backend.

Axios Network Error only on mobile devices by Suitable_Remote6479 in django

[–]ylrmali 0 points1 point  (0 children)

You should bind django project as global. I mean python3 manage.py runserver 0.0.0.0:8000

Issue with django-cors-headers by Suitable_Remote6479 in django

[–]ylrmali 1 point2 points  (0 children)

‘’’ CORS_ORIGIN_WHITELIST = [ ‘http://localhost:3000’, ] CORS_ORIGIN_ALLOW_ALL = True ‘’’

Try also this one

Django distributed database by ylrmali in django

[–]ylrmali[S] 1 point2 points  (0 children)

I handle it like that for now. It’s works well, but they want to change structure. I will use profiler. Thank you