<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: OlaNeat Ayoola</title>
    <description>The latest articles on DEV Community by OlaNeat Ayoola (@olaneat).</description>
    <link>https://dev.to/olaneat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F657249%2F84968845-d0c2-4874-a210-57717eac1358.jpg</url>
      <title>DEV Community: OlaNeat Ayoola</title>
      <link>https://dev.to/olaneat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/olaneat"/>
    <language>en</language>
    <item>
      <title>help on deploying angular app on netlify</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Sat, 15 Oct 2022 21:17:35 +0000</pubDate>
      <link>https://dev.to/olaneat/help-on-deploying-angular-app-on-netlify-5bm0</link>
      <guid>https://dev.to/olaneat/help-on-deploying-angular-app-on-netlify-5bm0</guid>
      <description>&lt;p&gt;hello guys, i'm trying to deploy my anagular app to netlify but when i deploy i get the following error, can anyone help me out, how do i fix this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;9:41:28 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
9:41:29 PM: npm ERR! code ERESOLVE
9:41:29 PM: npm ERR! ERESOLVE could not resolve
9:41:29 PM: npm ERR!
9:41:29 PM: npm ERR! While resolving: @angular/compiler-cli@14.2.6
9:41:29 PM: npm ERR! Found: @angular/compiler@14.0.3
9:41:29 PM: npm ERR! node_modules/@angular/compiler
9:41:29 PM: npm ERR!   @angular/compiler@"^14.0.2" from the root project
9:41:29 PM: npm ERR!   peer @angular/compiler@"14.0.3" from @angular/platform-browser-dynamic@14.0.3
9:41:29 PM: npm ERR!   node_modules/@angular/platform-browser-dynamic
9:41:29 PM: npm ERR!     @angular/platform-browser-dynamic@"^14.0.2" from the root project
9:41:29 PM: npm ERR!
9:41:29 PM: npm ERR! Could not resolve dependency:
9:41:29 PM: npm ERR! peer @angular/compiler@"14.2.6" from @angular/compiler-cli@14.2.6
9:41:29 PM: npm ERR! node_modules/@angular/compiler-cli
9:41:29 PM: npm ERR!   @angular/compiler-cli@"^14.0.2" from the root project
9:41:29 PM: npm ERR!   peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.0.3
9:41:29 PM: npm ERR!   node_modules/@angular-devkit/build-angular
9:41:29 PM: npm ERR!     dev @angular-devkit/build-angular@"~14.0.3" from the root project
9:41:29 PM: npm ERR!   2 more (@angular/localize, @ngtools/webpack)
9:41:29 PM: npm ERR!
9:41:29 PM: npm ERR! Conflicting peer dependency: @angular/compiler@14.2.6
9:41:29 PM: npm ERR! node_modules/@angular/compiler
9:41:29 PM: npm ERR!   peer @angular/compiler@"14.2.6" from @angular/compiler-cli@14.2.6
9:41:29 PM: npm ERR!   node_modules/@angular/compiler-cli
9:41:29 PM: npm ERR!     @angular/compiler-cli@"^14.0.2" from the root project
9:41:29 PM: npm ERR!     peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.0.3
9:41:29 PM: npm ERR!     node_modules/@angular-devkit/build-angular
9:41:29 PM: npm ERR!       dev @angular-devkit/build-angular@"~14.0.3" from the root project
9:41:29 PM: npm ERR!     2 more (@angular/localize, @ngtools/webpack)
9:41:29 PM: npm ERR!
9:41:29 PM: npm ERR! Fix the upstream dependency conflict, or retry
9:41:29 PM: npm ERR! this command with --force, or --legacy-peer-deps
9:41:29 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
9:41:29 PM: npm ERR!
9:41:29 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
9:41:29 PM: npm ERR! A complete log of this run can be found in:
9:41:29 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-10-15T20_41_28_030Z-debug-0.log
9:41:29 PM: Error during NPM install
9:41:29 PM: Build was terminated: Build script returned non-zero exit code: 1
9:41:29 PM: Creating deploy upload records
9:41:29 PM: Failing build: Failed to build site
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>question</category>
      <category>angular</category>
      <category>netlify</category>
    </item>
    <item>
      <title>how to fix raise ImproperlyConfigured("settings.DATABASES is improperly configured. "</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Thu, 15 Sep 2022 20:24:20 +0000</pubDate>
      <link>https://dev.to/olaneat/how-to-fix-raise-improperlyconfiguredsettingsdatabases-is-improperly-configured--1dgl</link>
      <guid>https://dev.to/olaneat/how-to-fix-raise-improperlyconfiguredsettingsdatabases-is-improperly-configured--1dgl</guid>
      <description>&lt;p&gt;hallo guys, &lt;br&gt;
so i'm having issue deploying my django on railway but once the deployment is complete the app crash with this err&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;and below is my django settings and railway setting &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'HOST': os.environ.get('PGHOST'),
        'NAME': os.environ.get('PGDATABASE'),  
        'USERNAME': os.environ.get('PGUSER'),
        'PASSWORD': os.environ.get('PGPASSWORD'),
        'PORT':os.environ.get('PGPORT')
    }
}



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fic06be7itxa173cvobfb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fic06be7itxa173cvobfb.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;can anyone help out pls &lt;/p&gt;

</description>
      <category>django</category>
      <category>railway</category>
      <category>drf</category>
      <category>postgres</category>
    </item>
    <item>
      <title>CSRF verification failed. Request aborted. in django rest framework</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Tue, 09 Aug 2022 14:46:03 +0000</pubDate>
      <link>https://dev.to/olaneat/csrf-verification-failed-request-aborted-in-django-rest-framework-4d4n</link>
      <guid>https://dev.to/olaneat/csrf-verification-failed-request-aborted-in-django-rest-framework-4d4n</guid>
      <description>&lt;p&gt;halo i'm working on a project, using drf, but i'm getting CSRF verification failed. Request aborted at first everything was working, but now when i test my api i keep keep getting,CSRF verification failed below is my setting &amp;amp; view  codes&lt;/p&gt;

&lt;p&gt;settings file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REST_FRAMEWORK = {

    DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_simplejwt.authentication.JWTAuthentication
   ),

    'DATE_INPUT_FORMATS': [("%Y-%m-%d")],
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_framework.permissions.IsAuthenticated'
    ),

    'DEFAULT_PARSER_CLASSES': (
        'rest_framework.parsers.JSONParser',
        'rest_framework.parsers.FormParser',
        'rest_framework.parsers.MultiPartParser',
    ),
    'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
    'PAGE_SIZE': 100

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;views&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class createProfileView(generics.CreateAPIView):
    queryset = UserProfile.objects.all()
    serializer_class   = UserProfileSerializer
    permission_classes= [permissions.IsAuthenticated]
    parser_classes = (MultiPartParser, FormParser)

    def create(self,request, *args, **kwargs):
        serializer = self.get_serializer(
            data=request.data, instance = request.user.user_profile 
        )
        serializer.is_valid(raise_exception=True)
        self.perform_create(serializer)
        headers = self.get_success_headers(serializer.data)
        res  = {
            'msg' : 'Profile successfully created',
            'status':status.HTTP_201_CREATED,
            'headers': headers,
            'data': serializer.data,

        }
        return Response(res)

    def perform_create(self, serializer):
        serializer.save(user=self.request.user)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;can anyone help&lt;/p&gt;

</description>
      <category>question</category>
      <category>drf</category>
      <category>csr</category>
      <category>django</category>
    </item>
    <item>
      <title>How to fix "Must supply api_key"</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Fri, 01 Jul 2022 21:43:35 +0000</pubDate>
      <link>https://dev.to/olaneat/how-to-fix-must-supply-apikey-2kjn</link>
      <guid>https://dev.to/olaneat/how-to-fix-must-supply-apikey-2kjn</guid>
      <description>&lt;p&gt;helo&lt;br&gt;
I'm working on a drf api where i'm using cloudinary to handle image upload, on my localhost i'm using .env file to save all my secret keys including cloudinary api key, and it working perfectly but once i deployed to heroku i keep getting this err message&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ValueError at /profile/247de095-6895-4bff-a836-dedfa75cde4b/update

Must supply api_key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and i have setup the secret key also using &lt;br&gt;
&lt;code&gt;heroku config:set api_key='api_key'&lt;/code&gt; but still it not working, can anyone help out&lt;/p&gt;

</description>
      <category>question</category>
      <category>drf</category>
      <category>cloudinary</category>
      <category>heroku</category>
    </item>
    <item>
      <title>how to display api response separately in react</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Thu, 30 Jun 2022 21:03:55 +0000</pubDate>
      <link>https://dev.to/olaneat/how-to-display-api-response-separately-in-react-jod</link>
      <guid>https://dev.to/olaneat/how-to-display-api-response-separately-in-react-jod</guid>
      <description>&lt;p&gt;hey guys &lt;br&gt;
so i'm working on a blog project where i'm getting multiple api response, but i wan to separate the response. displaying the 1st item only in a different part of my website and displaying the others in another section of website, but i got no idea how to go about this, can anyone please help me out &lt;br&gt;
thanks &lt;/p&gt;

</description>
      <category>discuss</category>
      <category>question</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Cannot find module '@angular/core' or its corresponding type declarations</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Thu, 23 Jun 2022 21:11:54 +0000</pubDate>
      <link>https://dev.to/olaneat/cannot-find-module-angularcore-or-its-corresponding-type-declarations-2jmf</link>
      <guid>https://dev.to/olaneat/cannot-find-module-angularcore-or-its-corresponding-type-declarations-2jmf</guid>
      <description>&lt;p&gt;i recently updated my project angular version from v11 to v14 the other version worked, but this version 14 isnt working, anytime i start the server, i get the following error&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i0.ApplicationModule to symbol
    at /home/olaneat/Desktop/files/project/angular/jobConnect/node_modules/@ngtools/webpack/src/ivy/loader.js:81:18
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i0.ApplicationModule to symbol
    at /home/olaneat/Desktop/files/project/angular/jobConnect/node_modules/@ngtools/webpack/src/ivy/loader.js:81:18
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Error: node_modules/@angular/animations/browser/index.d.ts:12:21 - error TS2307: Cannot find module '@angular/core' or its corresponding type declarations.

12 import * as i0 from '@angular/core';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;i've cleared my cache, deleted the node_module folder &amp;amp; did the following, still non worked&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
npm i &lt;br&gt;
ng update&lt;br&gt;
npm i @angular/core&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>question</category>
    </item>
    <item>
      <title>How can i convert buffer to img url in react</title>
      <dc:creator>OlaNeat Ayoola</dc:creator>
      <pubDate>Wed, 22 Jun 2022 06:56:35 +0000</pubDate>
      <link>https://dev.to/olaneat/how-can-i-convert-buffer-to-img-url-in-react-4bh</link>
      <guid>https://dev.to/olaneat/how-can-i-convert-buffer-to-img-url-in-react-4bh</guid>
      <description>&lt;p&gt;Good day &lt;br&gt;
i'm new with react and i have an endpoint that returns image as buffer and text, but i'm having issue converting that buffer to img url and displaying it, below is my code snippet&lt;br&gt;
&lt;code&gt;&amp;lt;div className={newsStyle.container}&amp;gt;&lt;br&gt;
            &amp;lt;ul &amp;gt;&lt;br&gt;
                {newsItem.map((news) =&amp;gt; {&lt;br&gt;
                    const Base64string = btoa(&lt;br&gt;
                        String.fromCharCode(... new Uint8Array(news?.img?.data?.data))&lt;br&gt;
                    );&lt;br&gt;
                    &amp;lt;li key={news._id}&amp;gt;&lt;br&gt;
                        &amp;lt;div className={newsStyle.index}&amp;gt;&lt;br&gt;
                            &amp;lt;img src={&lt;/code&gt;data: image/png; base64, ${Base64string}`} /&amp;gt;&lt;br&gt;
                            &lt;/p&gt;
&lt;p&gt;{news.title}&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    &amp;lt;/div&amp;gt;


                &amp;lt;/li&amp;gt;
            })}
        &amp;lt;/ul&amp;gt;

    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;`&lt;br&gt;
now the issue is with the curly bracket in the map function, nothing is rendered, but when i remove the curly it render value, but i wont b able to declare a variable&lt;br&gt;
can anyone help out&lt;/p&gt;

</description>
      <category>question</category>
      <category>react</category>
    </item>
  </channel>
</rss>
